Sfoglia il codice sorgente

销售订单修改

pengyh 1 anno fa
parent
commit
510497bfc7

+ 3 - 3
src/views/auxiliaryFittings/salesManagement/components/attachmentSalesOrderDetail.vue

@@ -39,8 +39,8 @@
 						<el-col :span="8">
 							<el-form-item label="购买方" :required="true" style="padding-bottom: 1px;">
 								<el-radio-group v-model="formData.buyPeople" @change="formData.workerName = '';formData.workerMobile=''">
-								    <el-radio :disabled="formData.flag != 'SAVE' && formType!=0" label="WORKER">内部师傅</el-radio>
-								    <el-radio :disabled="formData.flag != 'SAVE' && formType!=0" label="CUSTOMER">客户</el-radio>
+								    <el-radio :disabled="(formData.flag != 'SAVE' && formType!=0) || formData.salesType == '工程'" label="WORKER">内部师傅</el-radio>
+								    <el-radio :disabled="(formData.flag != 'SAVE' && formType!=0) || formData.salesType == '工程'" label="CUSTOMER">客户</el-radio>
 								</el-radio-group>
 							</el-form-item>
 						</el-col>
@@ -721,7 +721,7 @@
 				})
 			},
 			changeSale(){
-				
+				this.formData.buyPeople = 'CUSTOMER'
 			},
 			getinitlbslist() {
 			  // 初始化请求省市区街道下拉选项数据

+ 3 - 3
src/views/auxiliaryFittings/salesManagement/components/auxiliarySalesOrderDetail.vue

@@ -39,8 +39,8 @@
 						<el-col :span="8">
 							<el-form-item label="购买方" :required="true" style="padding-bottom: 1px;">
 								<el-radio-group v-model="formData.buyPeople" @change="formData.workerName = '';formData.workerMobile=''">
-								    <el-radio :disabled="formData.flag != 'SAVE' && formType!=0" label="WORKER">内部师傅</el-radio>
-								    <el-radio :disabled="formData.flag != 'SAVE' && formType!=0" label="CUSTOMER">客户</el-radio>
+								    <el-radio :disabled="(formData.flag != 'SAVE' && formType!=0) || formData.salesType == '工程'" label="WORKER">内部师傅</el-radio>
+								    <el-radio :disabled="(formData.flag != 'SAVE' && formType!=0) || formData.salesType == '工程'" label="CUSTOMER">客户</el-radio>
 								</el-radio-group>
 							</el-form-item>
 						</el-col>
@@ -795,7 +795,7 @@
 				})
 			},
 			changeSale(){
-				
+				this.formData.buyPeople = 'CUSTOMER'
 			},
 			getinitlbslist() {
 			  // 初始化请求省市区街道下拉选项数据