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

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

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

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

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

Loading…
Cancel
Save