Browse Source

2026-02-12

新增时或编辑时,单据类型为“采购退货”时出库类别不再校验必填
master
fengyuan_yang 2 weeks ago
parent
commit
03512a6cf1
  1. 12
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue
  2. 9
      src/views/modules/qc/inboundNotification.vue
  3. 32
      src/views/modules/qc/outboundNotification.vue

12
src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

@ -2959,6 +2959,9 @@
});
},
closeNotifyModel(row){
//
this.currentRow = JSON.parse(JSON.stringify(row))
this.closeData.site=row.site
this.closeData.notifyNo=row.notifyNo
this.closeData.closeRemark=''
@ -2997,6 +3000,9 @@
})
},
deleteNotifyConfirm(row){
//
this.currentRow = JSON.parse(JSON.stringify(row))
this.$confirm('确认删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -3948,6 +3954,9 @@
},
editNotifyMaterialFun(row){
// ,使
this.currentRow = JSON.parse(JSON.stringify(row))
//
searchSumNotifyMaterialList(row).then(({data}) => {
if (data && data.code === 0 && data.rows && data.rows.length > 0) {
@ -3963,9 +3972,6 @@
}
//
//
this.currentRow = JSON.parse(JSON.stringify(row));
editNotifyMaterial(row).then(({data})=>{
if (data.code === 0) {
//

9
src/views/modules/qc/inboundNotification.vue

@ -1538,6 +1538,9 @@
},
updateModal (row) {
// ,使
this.currentRow = JSON.parse(JSON.stringify(row))
if (this.currentRow.orderType === '采购入库' || this.currentRow.orderType === '销售退货') {
this.$message.warning('该类型单据不能编辑!')
return
@ -1678,6 +1681,9 @@
//
closeModal (row) {
//
this.currentRow = JSON.parse(JSON.stringify(row))
if (this.currentRow.orderType === '采购入库' || this.currentRow.orderType === '销售退货') {
this.$message.warning('该类型单据不能编辑!')
return
@ -1694,6 +1700,9 @@
//
issueModal (row) {
//
this.currentRow = JSON.parse(JSON.stringify(row))
if (this.currentRow.orderType === '采购入库' || this.currentRow.orderType === '销售退货') {
this.$message.warning('该类型单据不能编辑!')
return

32
src/views/modules/qc/outboundNotification.vue

@ -248,7 +248,7 @@
</el-date-picker>
</el-form-item>
<el-form-item label="出库类别" prop="category">
<el-select v-model="modalData.category" placeholder="请选择" style="width: 140px">
<el-select v-model="modalData.category" :disabled="modalData.orderType === '采购退货'" placeholder="请选择" style="width: 140px">
<el-option
v-for="item in categoryList"
:key="item.crdcode"
@ -1293,7 +1293,17 @@
{
required: true,
message: ' ',
trigger: ['blur','change']
trigger: ['blur','change'],
// :退,
validator: (rule, value, callback) => {
if (this.modalData.orderType === '采购退货') {
callback()
} else if (!value || value === '') {
callback(new Error(' '))
} else {
callback()
}
}
}
],
departmentNo: [
@ -1502,6 +1512,9 @@
},
updateModal (row) {
// ,使
this.currentRow = JSON.parse(JSON.stringify(row))
if (this.currentRow.orderType === '销售出库') {
this.$message.warning('销售出库单据不能编辑!')
return
@ -1611,6 +1624,11 @@
//
deleteModal () {
// ,
if (this.outboundSelection.length > 0) {
this.currentRow = JSON.parse(JSON.stringify(this.outboundSelection[0]))
}
if (this.currentRow.orderType === '销售出库') {
this.$message.warning('销售出库单据不能编辑!')
return
@ -1718,6 +1736,9 @@
//
closeModal (row) {
//
this.currentRow = JSON.parse(JSON.stringify(row))
if (this.currentRow.orderType === '销售出库') {
this.$message.warning('销售出库单据不能编辑!')
return
@ -1734,6 +1755,9 @@
//
issueModal (row) {
//
this.currentRow = JSON.parse(JSON.stringify(row))
if (this.currentRow.orderType === '销售出库') {
this.$message.warning('销售出库单据不能编辑!')
return
@ -2074,6 +2098,10 @@
onOrderTypeChange () {
this.modalData.customerId = ''
this.modalData.customerName = ''
// 退,
if (this.modalData.orderType === '采购退货') {
this.modalData.category = ''
}
},
chooseWareHouse (row) {

Loading…
Cancel
Save