Browse Source

采购订单是日程单 无订单数量字段修改

master
zhaoxuebing 10 months ago
parent
commit
dba58c0de3
  1. 34
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  2. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

34
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -39,7 +39,8 @@
@handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" />
@submitForm="submitForm"
@onChange="onChangeQty" />
<!-- 详情 -->
<Detail ref="detailRef"
@ -247,6 +248,20 @@
/** 详情操作 */
const detailRef = ref()
const openDetail = (row : any, titleName : any, titleValue : any) => {
console.log("row",row.type);
if(row.type == 'DISCRETE'){
PurchaseDetail.allSchemas.formSchema.map((item) => {
if (item.field == 'orderQty') {
item.componentProps.disabled = false
}
})
}else{
PurchaseDetail.allSchemas.formSchema.map((item) => {
if (item.field == 'orderQty') {
item.componentProps.disabled = true
}
})
}
detailRef.value.openDetail(row, titleName, titleValue,'orderPurchaseMain')
}
@ -393,6 +408,23 @@
}
getList() //
}
const onChangeQty = (field, cur) => {
if(field == 'type' && cur == 'DISCRETE'){
PurchaseDetail.allSchemas.tableFormColumns.map((item) => {
if (item.field == 'orderQty') {
item.tableForm.disabled = false
}
})
}
if(field == 'type' && cur == 'SCHEDULE'){
PurchaseDetail.allSchemas.tableFormColumns.map((item) => {
if (item.field == 'orderQty') {
item.tableForm.disabled = true
}
})
}
}
/** 初始化 **/
onMounted(async () => {

2
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -459,11 +459,13 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'InputNumber',
componentProps: {
disabled:false,
min: 1,
precision: 6
}
},
tableForm: {
disabled:false,
type: 'InputNumber',
min: 1,
precision: 6

Loading…
Cancel
Save