This commit is contained in:
2022-11-14 11:24:50 +08:00
parent 17853ca15e
commit e2ef7b21e8
6 changed files with 17 additions and 182 deletions

View File

@@ -55,10 +55,10 @@
@change="billTypeChange"
>
<el-option
v-for="item in billtypelist"
:key="item.code"
:label="item.name"
:value="item.code"
v-for="item in dict.ST_INV_IN_TYPE"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
@@ -200,9 +200,9 @@ const defaultForm = {
export default {
name: 'AddDialog',
components: { crudOperation, AddDtl, MaterDtl },
components: { AddDtl, MaterDtl },
mixins: [crud(), form(defaultForm)],
dicts: ['io_bill_status', 'ST_QUALITY_SCODE', 'ST_IVT_LEVEL', 'is_used'],
dicts: ['io_bill_status', 'ST_QUALITY_SCODE', 'ST_INV_IN_TYPE'],
props: {
dialogShow: {
type: Boolean,
@@ -252,23 +252,11 @@ export default {
crudStorattr.getStor({ 'is_productstore': '1' }).then(res => {
this.storlist = res.content
})
/* // 获取单据类型
crudRawAssist.getType({ 'io_code': '0001', 'io_flag': '00' }).then(res => {
this.billtypelist = res
})*/
},
close() {
this.$emit('AddChanged')
},
[CRUD.HOOK.afterToEdit]() {
// 编辑时,给按钮的状态赋值
if (this.form.bill_type === '000101') {
this.bill_btn = false
this.mater_btn = true
} else if (this.form.bill_type === '000102') {
this.bill_btn = true
this.mater_btn = false
}
// 获取入库单明细
crudRawAssist.getIODtl({ 'bill_code': this.form.bill_code }).then(res => {
this.form.tableData = res