|
@@ -134,7 +134,14 @@
|
|
|
-->
|
|
-->
|
|
|
<!-- *** -->
|
|
<!-- *** -->
|
|
|
<template v-slot:measureQuantity="{row}">
|
|
<template v-slot:measureQuantity="{row}">
|
|
|
- <el-input @input="totalCountChange(row,'measureQuantity')" v-model="row.measureQuantity" type="number" :min="1" placeholder="请输入" :disabled="!tableOperate"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ @input="totalCountChange(row,'measureQuantity')"
|
|
|
|
|
+ v-model="row.measureQuantity"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ :min="1"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ :disabled="!tableOperate"
|
|
|
|
|
+ ></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:expand="{ row,$index }">
|
|
<template v-slot:expand="{ row,$index }">
|
|
|
<div
|
|
<div
|
|
@@ -691,6 +698,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 需求表格修改权限 ***
|
|
// 需求表格修改权限 ***
|
|
|
tableOperate() {
|
|
tableOperate() {
|
|
|
|
|
+ if(this.isReportDetails){
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
let flag = this.type != 'view' || this.state == '可操作';
|
|
let flag = this.type != 'view' || this.state == '可操作';
|
|
|
return flag;
|
|
return flag;
|
|
|
},
|
|
},
|
|
@@ -715,6 +725,9 @@ export default {
|
|
|
// 附件上传 更改设置
|
|
// 附件上传 更改设置
|
|
|
fileStr() {
|
|
fileStr() {
|
|
|
let str;
|
|
let str;
|
|
|
|
|
+ if(this.isReportDetails){
|
|
|
|
|
+ return 'view';
|
|
|
|
|
+ }
|
|
|
if (this.source) {
|
|
if (this.source) {
|
|
|
return 'add';
|
|
return 'add';
|
|
|
}
|
|
}
|
|
@@ -738,6 +751,12 @@ export default {
|
|
|
state: {
|
|
state: {
|
|
|
default: '',
|
|
default: '',
|
|
|
type: String
|
|
type: String
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ // 是否是报工售后工单详情进入
|
|
|
|
|
+ isReportDetails: {
|
|
|
|
|
+ default: false,
|
|
|
|
|
+ type: Boolean
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
@@ -848,12 +867,12 @@ export default {
|
|
|
this.$refs.invoiceDialogRef.open(this.form.contractInfo.id, obj);
|
|
this.$refs.invoiceDialogRef.open(this.form.contractInfo.id, obj);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- totalCountChange(data,name) {
|
|
|
|
|
|
|
+ totalCountChange(data, name) {
|
|
|
data[name] = data[name].replace(/[^\d]/g, '').replace(/^0+/, '') || '1';
|
|
data[name] = data[name].replace(/[^\d]/g, '').replace(/^0+/, '') || '1';
|
|
|
},
|
|
},
|
|
|
//发货单回调
|
|
//发货单回调
|
|
|
invoiceChange(data) {
|
|
invoiceChange(data) {
|
|
|
- console.log(data,'明细数据')
|
|
|
|
|
|
|
+ console.log(data, '明细数据');
|
|
|
this.$set(this.form, 'orderCode', data.orderCode);
|
|
this.$set(this.form, 'orderCode', data.orderCode);
|
|
|
this.$set(this.form, 'orderId', data.orderId);
|
|
this.$set(this.form, 'orderId', data.orderId);
|
|
|
let list = JSON.parse(JSON.stringify(data.tableList));
|
|
let list = JSON.parse(JSON.stringify(data.tableList));
|