|
@@ -117,8 +117,7 @@
|
|
|
<i
|
|
|
class="el-icon-close"
|
|
|
v-if="
|
|
|
- id === 'add' ||
|
|
|
- (status === '0' && powers.some((i) => i == '005'))
|
|
|
+ id === 'add' || (status === '0' && powers.some((i) => i == '005'))
|
|
|
"
|
|
|
@click="imgClose(index)"
|
|
|
></i>
|
|
@@ -149,10 +148,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@click="submitForm"
|
|
|
- v-if="
|
|
|
- id === 'add' ||
|
|
|
- (status === '0' && powers.some((i) => i == '005'))
|
|
|
- "
|
|
|
+ v-if="id === 'add' || (status === '0' && powers.some((i) => i == '005'))"
|
|
|
>保 存</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -285,9 +281,8 @@ export default {
|
|
|
computed: {
|
|
|
powers() {
|
|
|
const tran =
|
|
|
- this.$store.getters.btnList.find(
|
|
|
- (item) => item.menu_route == "handoverDetail"
|
|
|
- ) || {};
|
|
|
+ this.$store.getters.btnList.find((item) => item.menu_route == "handoverDetail") ||
|
|
|
+ {};
|
|
|
const { action } = tran ?? {};
|
|
|
return action ?? [];
|
|
|
},
|
|
@@ -327,8 +322,13 @@ export default {
|
|
|
};
|
|
|
const res = await asyncRequest.detail(model);
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
- let { error_num, error_img, error_remark, except_code, error_code } =
|
|
|
- console.log(res.data);
|
|
|
+ let {
|
|
|
+ error_num,
|
|
|
+ error_img,
|
|
|
+ error_remark,
|
|
|
+ except_code,
|
|
|
+ error_code,
|
|
|
+ } = console.log(res.data);
|
|
|
this.ruleForm = {
|
|
|
stock_out_numbers: "", //发货申请单编号
|
|
|
num: error_num, //异常数量
|
|
@@ -349,13 +349,14 @@ export default {
|
|
|
const { is_receive } = this.ruleForm;
|
|
|
this.ruleForm.errorCode = "";
|
|
|
this.ruleForm.except_code = "";
|
|
|
+ if (is_receive === "0") {
|
|
|
+ this.ruleForm.num = this.ruleForm.send_num;
|
|
|
+ }
|
|
|
this.expect_options = [];
|
|
|
this.reason_options = [];
|
|
|
if (is_receive !== "") {
|
|
|
this.expect_options = JSON.parse(
|
|
|
- JSON.stringify(
|
|
|
- is_receive === "1" ? this.expect_options1 : this.expect_options0
|
|
|
- )
|
|
|
+ JSON.stringify(is_receive === "1" ? this.expect_options1 : this.expect_options0)
|
|
|
);
|
|
|
await this.getReason(is_receive === "1" ? "3" : "6"); //获取异常原因
|
|
|
}
|