Commit 663d2ad1 authored by tanjunxin's avatar tanjunxin

fix: 录入入库单接口更改

parent 6a694903
...@@ -46,7 +46,7 @@ const install = (Vue, vm) => { ...@@ -46,7 +46,7 @@ const install = (Vue, vm) => {
// 品号信息 // 品号信息
getforinvmbinfo: (params = {}) => vm.$u.postJson(vm.vuex_api_url + '/invmb/getforinvmbinfo', params), getforinvmbinfo: (params = {}) => vm.$u.postJson(vm.vuex_api_url + '/invmb/getforinvmbinfo', params),
// 入库单创建 // 入库单创建
createforstorage: (params = {}) => vm.$u.postJson(vm.vuex_api_url + '/sfctb/createforstorage', params), createforstorage: (params = {}) => vm.$u.postJson(vm.vuex_api_url + '/moctf/createByErp', params),
stockSaleOutList: (params = {}) => vm.$u.postJson(vm.vuex_api_url + '/stockSaleOut/list', params), stockSaleOutList: (params = {}) => vm.$u.postJson(vm.vuex_api_url + '/stockSaleOut/list', params),
stockList: (params = {}) => vm.$u.postJson(vm.vuex_api_url + '/stockSaleOut/stockList', params), stockList: (params = {}) => vm.$u.postJson(vm.vuex_api_url + '/stockSaleOut/stockList', params),
confirmStock: (params = {}) => vm.$u.postJson(vm.vuex_api_url + '/stockSaleOut/confirm', params), confirmStock: (params = {}) => vm.$u.postJson(vm.vuex_api_url + '/stockSaleOut/confirm', params),
......
...@@ -3,32 +3,32 @@ ...@@ -3,32 +3,32 @@
<NavBar :title="$t('录入入库单')"></NavBar> <NavBar :title="$t('录入入库单')"></NavBar>
<view class="infoedit"> <view class="infoedit">
<u-form ref="form" :modelValue="form" class="login-form" :labelWidth="190"> <u-form ref="form" :modelValue="form" class="login-form" :labelWidth="190">
<u-form-item prop="tb001" :label="$t('入库单别:')"> <u-form-item prop="tg001" :label="$t('入库单别:')">
<input <input
v-model="form.tb001" v-model="form.tg001"
type="text" type="text"
> >
</input> </input>
</u-form-item> </u-form-item>
<!-- <u-form-item prop="tc013" :label="$t('类型:')"> <!-- <u-form-item prop="tg010" :label="$t('类型:')">
<uni-data-select <uni-data-select
v-model="form.tc013" v-model="form.tg010"
:clear="false" :clear="false"
:localdata="typeData" :localdata="typeData"
></uni-data-select> ></uni-data-select>
</u-form-item> --> </u-form-item> -->
<u-form-item prop="tc004" :label="$t('工单单别:')"> <u-form-item prop="tg014" :label="$t('工单单别:')">
<input <input
v-model="form.tc004" v-model="form.tg014"
type="text" type="text"
@confirm="inputCC" @confirm="inputCC"
> >
</input> </input>
</u-form-item> </u-form-item>
<u-form-item prop="tc005" :label="$t('工单单号:')"> <u-form-item prop="tg015" :label="$t('工单单号:')">
<input <input
v-model="form.tc005" v-model="form.tg015"
focus focus
type="text" type="text"
@confirm="inputCC" @confirm="inputCC"
...@@ -53,16 +53,14 @@ ...@@ -53,16 +53,14 @@
> >
</input> </input>
</u-form-item> --> </u-form-item> -->
<u-form-item prop="tc056" :label="$t('库位:')"> <u-form-item prop="tg036" :label="$t('库位:')">
<input <input
v-model.number="form.tc056" v-model.number="form.tg036"
type="text" type="text"
@confirm="submit" @confirm="submit"
> >
</input> </input>
</u-form-item> </u-form-item>
<!-- <u-form-item prop="tb008" :label="$t('移入地:')"> <!-- <u-form-item prop="tb008" :label="$t('移入地:')">
<input <input
v-model.number="form.tb008" v-model.number="form.tb008"
...@@ -72,7 +70,7 @@ ...@@ -72,7 +70,7 @@
> >
</input> </input>
</u-form-item> --> </u-form-item> -->
<u-form-item prop="tc032" :label="$t('批号:')"> <!-- <u-form-item prop="tc032" :label="$t('批号:')">
<input <input
v-model.number="form.tc032" v-model.number="form.tc032"
...@@ -80,16 +78,16 @@ ...@@ -80,16 +78,16 @@
@confirm="submit" @confirm="submit"
> >
</input> </input>
</u-form-item> </u-form-item> -->
<u-form-item prop="tc036" :label="$t('转移数量:')"> <u-form-item prop="tg011" :label="$t('数量:')">
<input <input
v-model="form.tc036" v-model="form.tg011"
type="text" type="text"
@confirm="submit" @confirm="submit"
> >
</input> </input>
</u-form-item> </u-form-item>
<u-form-item prop="tc020" :label="$t('使用人时:')"> <!-- <u-form-item prop="tc020" :label="$t('使用人时:')">
<input <input
v-model="form.tc020" v-model="form.tc020"
type="text" type="text"
...@@ -104,7 +102,7 @@ ...@@ -104,7 +102,7 @@
@confirm="submit" @confirm="submit"
> >
</input> </input>
</u-form-item> </u-form-item> -->
<u-form-item style="width:100%;"> <u-form-item style="width:100%;">
<button <button
size="medium" size="medium"
...@@ -136,10 +134,10 @@ import i18n from '../../lang/index' ...@@ -136,10 +134,10 @@ import i18n from '../../lang/index'
this.index = option.index this.index = option.index
this.info = data this.info = data
this.form = data.moctis[this.index] this.form = data.moctis[this.index]
this.form['tc004'] = this.form['tc004'] ? this.form['tc004'].trim() : '' this.form['tg014'] = this.form['tg014'] ? this.form['tg014'].trim() : ''
this.form['tc005'] = this.form['tc005'] ? this.form['tc005'].trim() : '' this.form['tg015'] = this.form['tg015'] ? this.form['tg015'].trim() : ''
this.form['tc006'] = this.form['tc006'] ? this.form['tc006'].trim() : '' // this.form['tc006'] = this.form['tc006'] ? this.form['tc006'].trim() : ''
this.form['tc056'] = this.form['tc056'] ? this.form['tc056'].trim() : '' this.form['tg036'] = this.form['tg036'] ? this.form['tg036'].trim() : ''
} }
}, },
data() { data() {
...@@ -172,18 +170,18 @@ import i18n from '../../lang/index' ...@@ -172,18 +170,18 @@ import i18n from '../../lang/index'
} }
], ],
form: { form: {
tc013: '1', tg010: '01',
tb001: 'D20', tg001: '5801',
tc004: '5101', tg014: '510',
tc005: null, tg015: null,
tc006: null, // tc006: null,
tb005: null, // tb005: null,
tc056: null, tg036: null,
tb008: null, // tb008: null,
tc032: null, // tc032: null,
tc036: null, // tg011: null,
tc020: null, // tc020: null,
tc021: null, // tc021: null,
} }
}; };
}, },
...@@ -195,8 +193,8 @@ import i18n from '../../lang/index' ...@@ -195,8 +193,8 @@ import i18n from '../../lang/index'
if(e.detail.value.includes("-")){ if(e.detail.value.includes("-")){
const arr = e.detail.value.split("-") const arr = e.detail.value.split("-")
if (arr.length === 2) { if (arr.length === 2) {
this.form.tc004 = arr[0] this.form.tg014 = arr[0]
this.form.tc005 = arr[1] this.form.tg015 = arr[1]
} }
} else { } else {
this.submit() this.submit()
...@@ -204,13 +202,13 @@ import i18n from '../../lang/index' ...@@ -204,13 +202,13 @@ import i18n from '../../lang/index'
} }
}, },
submit(row) { submit(row) {
if (!this.form['tb001']) { if (!this.form['tg001']) {
return this.$u.toast(i18n.t('请输入入库单别')) return this.$u.toast(i18n.t('请输入入库单别'))
} }
if (!this.form['tc004']) { if (!this.form['tg014']) {
return this.$u.toast(i18n.t('请输入工单单别')) return this.$u.toast(i18n.t('请输入工单单别'))
} }
if (!this.form['tc005']) { if (!this.form['tg015']) {
return this.$u.toast(i18n.t('请输入工单单号')) return this.$u.toast(i18n.t('请输入工单单号'))
} }
// if (!this.form['tc006']) { // if (!this.form['tc006']) {
...@@ -219,31 +217,31 @@ import i18n from '../../lang/index' ...@@ -219,31 +217,31 @@ import i18n from '../../lang/index'
// if (!this.form['tb005']) { // if (!this.form['tb005']) {
// return this.$u.toast(i18n.t('请输入移出地')) // return this.$u.toast(i18n.t('请输入移出地'))
// } // }
if (!this.form['tc056']) { if (!this.form['tg036']) {
return this.$u.toast(i18n.t('请输入库位')) return this.$u.toast(i18n.t('请输入库位'))
} }
// if (!this.form['tb008']) { // if (!this.form['tb008']) {
// return this.$u.toast(i18n.t('请输入移入地')) // return this.$u.toast(i18n.t('请输入移入地'))
// } // }
if (!this.form['tc036']) { if (!this.form['tg011']) {
return this.$u.toast(i18n.t('请输入入库数量')) return this.$u.toast(i18n.t('请输入入库数量'))
} }
this.$u.api.createforstorage(this.form).then(res => { this.$u.api.createforstorage(this.form).then(res => {
if(res.success) { if(res.success) {
this.$u.toast(i18n.t('入库成功')) this.$u.toast(i18n.t('入库成功'))
this.form = { this.form = {
tc013: '1', tg010: '01',
tb001: 'D20', tg001: '5801',
tc004: '5101', tg014: '510',
tc005: null, tg015: null,
tc006: null, // tc006: null,
tb005: null, // tb005: null,
tc056: null, tg036: null,
tb008: null, // tb008: null,
tc032: null, // tc032: null,
tc036: null, tg011: null,
tc020: null, // tc020: null,
tc021: null, // tc021: null,
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment