退料流程还是按照目前的流程,需要增加双方拍照上传的功能。

This commit is contained in:
xiaofajia 2024-11-25 17:44:13 +08:00
parent 2443557a03
commit 8a4745e079

View File

@ -98,7 +98,7 @@
:disabled="allSelectRows.length === 0 || allSelectRows.filter(item => !item.isStock).length !== 0"> :disabled="allSelectRows.length === 0 || allSelectRows.filter(item => !item.isStock).length !== 0">
通知领料 通知领料
</el-button> </el-button>
<el-button type="primary" v-else @click="handlePass" <el-button type="primary" v-else @click="handlePassBefore"
:disabled="allSelectRows.length === 0 || allSelectRows.filter(item => !item.isStock).length !== 0"> :disabled="allSelectRows.length === 0 || allSelectRows.filter(item => !item.isStock).length !== 0">
通知退料 通知退料
</el-button> </el-button>
@ -245,9 +245,9 @@
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="通知领料" :visible.sync="inPhoto" width="40%" v-dialogDrag append-to-body> <el-dialog :title="type ? '通知领料' : '通知退料'" :visible.sync="inPhoto" width="40%" v-dialogDrag append-to-body>
<el-form :inline="true" label-width="15rem"> <el-form :inline="true" label-width="15rem">
<el-form-item label="领料人"> <el-form-item :label="type ? '领料人' : '退料人'">
<el-select v-model="chooseStaff" multiple clearable filterable> <el-select v-model="chooseStaff" multiple clearable filterable>
<el-option v-for="staff in staffs" :key="staff.id" :value="staff.userId" :label="staff.userName" /> <el-option v-for="staff in staffs" :key="staff.id" :value="staff.userId" :label="staff.userName" />
</el-select> </el-select>
@ -419,7 +419,7 @@ export default {
return item.replace(process.env.VUE_APP_FILE_API, "") return item.replace(process.env.VUE_APP_FILE_API, "")
}).join(",") }).join(",")
} }
if (this.type && (!this.chooseStaff || this.chooseStaff.length === 0)){ if ((!this.chooseStaff || this.chooseStaff.length === 0)){
this.$modal.msgError("请选择领料人!") this.$modal.msgError("请选择领料人!")
return return
} }
@ -431,7 +431,7 @@ export default {
userName: this.formData.repairName, userName: this.formData.repairName,
soTime: parseTime(Date.now(), '{y}-{m}-{d}'), soTime: parseTime(Date.now(), '{y}-{m}-{d}'),
soStatus: this.type ? "04" : "07", soStatus: this.type ? "04" : "07",
userIds: this.type ? this.chooseStaff.join(",") : '' userIds: this.chooseStaff.join(",")
// purchaseType: "01" // purchaseType: "01"
} }
this.formData.repairSois = [...this.allSelectRows.map(item => { this.formData.repairSois = [...this.allSelectRows.map(item => {