|
@@ -27,7 +27,7 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="8">
|
|
|
<el-form-item label="业务员" prop="salesMan">
|
|
|
- <el-select v-model="mainForm.salesMan" placeholder="选择业务员" size="small" filterable clearable style="width: 100%">
|
|
|
+ <el-select v-model="mainForm.salesMan" disabled placeholder="选择业务员" size="small" filterable clearable style="width: 100%">
|
|
|
<el-option
|
|
|
v-for="item in salesmanList"
|
|
|
:key="item.adminUserId"
|
|
@@ -86,7 +86,7 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="8">
|
|
|
<el-form-item label="工程编号" prop="enginNum">
|
|
|
- <el-input v-model="mainForm.enginNum" placeholder="请输入工程编号"></el-input>
|
|
|
+ <el-input disabled v-model="mainForm.enginNum" placeholder="请输入工程编号"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="8">
|
|
@@ -109,7 +109,7 @@
|
|
|
<el-input v-model="mainForm.address" placeholder="请输入安装地址" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :xs="24" :sm="24" :lg="16">
|
|
|
+ <el-col :xs="24" :sm="24" :lg="16" v-if="!isDealer">
|
|
|
<el-form-item label="格力内部备注" prop="greeRemark">
|
|
|
<el-input v-model="mainForm.greeRemark" placeholder="请输入格力内部备注"></el-input>
|
|
|
</el-form-item>
|
|
@@ -129,7 +129,7 @@
|
|
|
<el-input v-model="mainForm.greeReply" placeholder="请输入格力回复"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :xs="24" :sm="24" :lg="24">
|
|
|
+ <el-col :xs="24" :sm="24" :lg="24" v-if="!isDealer">
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
<el-input v-model="mainForm.remark" placeholder="请输入备注"></el-input>
|
|
|
</el-form-item>
|
|
@@ -347,6 +347,7 @@
|
|
|
<el-table-column align="center" prop="enginInfoNo" label="工程信息单" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" prop="projectName" label="工程项目" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" prop="useUnit" label="使用单位" show-overflow-tooltip></el-table-column>
|
|
|
+
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<div class="pagination clearfix">
|
|
@@ -374,6 +375,7 @@
|
|
|
import { getOrderDetail, getComLoginList, getComLoginDetail, getWarehouseList, addCom, editCom, submitCom, checkStock, getWalletList } from "@/api/supply/engin";
|
|
|
import { getDictList, getTypeList, getSalesmanList } from '@/api/common'
|
|
|
import { findElem } from '@/utils/util'
|
|
|
+import { mapGetters } from "vuex";
|
|
|
|
|
|
let that
|
|
|
export default {
|
|
@@ -464,6 +466,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
+ ...mapGetters(['isCustomer']),
|
|
|
isDealer() {
|
|
|
return JSON.parse(localStorage.getItem("supply_user")).isCustomer
|
|
|
},
|
|
@@ -764,8 +767,10 @@ export default {
|
|
|
if(this.goodsList[index].customerWalletId) {
|
|
|
let obj = this.goodsList[index].wallets.find(o => o.customerWalletId == this.goodsList[index].customerWalletId);
|
|
|
this.goodsList[index].customerWalletName = obj.customerWalletName;
|
|
|
- this.goodsList[index].serviceId = obj.serviceId;
|
|
|
+ if (index === 1) {
|
|
|
+ this.goodsList[index].serviceId = obj.serviceId;
|
|
|
this.goodsList[index].serviceName = obj.serviceName;
|
|
|
+ }
|
|
|
}else {
|
|
|
this.goodsList[index].customerWalletName = '';
|
|
|
this.goodsList[index].serviceId = '';
|