Commit 03b68bad authored by jingnan's avatar jingnan 👀

返厂入库区域和明细到货日期可修改

parent 2e58329b
...@@ -385,7 +385,7 @@ export default { ...@@ -385,7 +385,7 @@ export default {
this.header = this.basicData this.header = this.basicData
if (!this.header) return if (!this.header) return
this.$set(this.form, 'supplier', this.header.supplierFullName.label || '') this.$set(this.form, 'supplier', this.header.supplierFullName.label || '')
this.$set(this.form, 'arrivalDate', this.header.arrivalDate) // this.$set(this.form, 'arrivalDate', this.header.arrivalDate)
const childrenAddOrEdit = this.header.materialTypeName.label === '外购成品' && (this.operateType === 'ADD' || (this.operateType === 'MODIFY' && !this.form.isRoot)) const childrenAddOrEdit = this.header.materialTypeName.label === '外购成品' && (this.operateType === 'ADD' || (this.operateType === 'MODIFY' && !this.form.isRoot))
const parentIsVirtual = this.form.isVirtual const parentIsVirtual = this.form.isVirtual
switch (this.header.billType) { switch (this.header.billType) {
...@@ -573,7 +573,7 @@ export default { ...@@ -573,7 +573,7 @@ export default {
component: { component: {
clearable: true, clearable: true,
name: 'el-date-picker', name: 'el-date-picker',
disabled: true, disabled: childrenAddOrEdit,
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
valueFormat: 'yyyy-MM-dd hh:mm:ss', valueFormat: 'yyyy-MM-dd hh:mm:ss',
placeholder: '请选择到货日期' placeholder: '请选择到货日期'
...@@ -903,7 +903,7 @@ export default { ...@@ -903,7 +903,7 @@ export default {
component: { component: {
clearable: true, clearable: true,
name: 'el-date-picker', name: 'el-date-picker',
disabled: true, disabled: childrenAddOrEdit,
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
valueFormat: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd',
placeholder: '请选择到货日期' placeholder: '请选择到货日期'
...@@ -1291,7 +1291,7 @@ export default { ...@@ -1291,7 +1291,7 @@ export default {
component: { component: {
clearable: true, clearable: true,
name: 'el-date-picker', name: 'el-date-picker',
disabled: true, disabled: childrenAddOrEdit,
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
valueFormat: 'yyyy-MM-dd hh:mm:ss', valueFormat: 'yyyy-MM-dd hh:mm:ss',
placeholder: '请选择到货日期' placeholder: '请选择到货日期'
......
...@@ -540,7 +540,7 @@ export default { ...@@ -540,7 +540,7 @@ export default {
methods: { methods: {
cancel() { cancel() {
this.$emit('cancel') this.$emit('cancel')
this.$bus.$emit('refreshPurchaseData') this.$bus.$emit('refreshInRecallData')
}, },
initData() { initData() {
this.getInventoryRequest() this.getInventoryRequest()
...@@ -782,7 +782,9 @@ export default { ...@@ -782,7 +782,9 @@ export default {
}) })
if (data.length > 0) { if (data.length > 0) {
this.formData[0].data.forEach(item => { this.formData[0].data.forEach(item => {
if (item.key !== 'extDxProductAreaId') {
item.component.disabled = true item.component.disabled = true
}
}) })
} }
this.pagination.total = data.length this.pagination.total = data.length
......
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