From 6c98ce3e2b28c1dcc73e79308dd1106637faff93 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期四, 12 十月 2023 20:50:14 +0800 Subject: [PATCH] 服务合同-接口参数调整 --- src/views/sales/salesReturn/AddSalesReturnDialog.vue | 41 +++++++++++++++++++++++++++++++++++++++-- 1 files changed, 39 insertions(+), 2 deletions(-) diff --git a/src/views/sales/salesReturn/AddSalesReturnDialog.vue b/src/views/sales/salesReturn/AddSalesReturnDialog.vue index a251198..566997b 100644 --- a/src/views/sales/salesReturn/AddSalesReturnDialog.vue +++ b/src/views/sales/salesReturn/AddSalesReturnDialog.vue @@ -52,7 +52,22 @@ </el-col> <el-col :span="12"> <el-form-item label="閿�鍞��璐у崟缂栧彿" prop="number"> - <el-input v-model="editConfig.infomation.number" style="width:100%"></el-input> + <WordInput + v-if="codenumer && (explain != '' || isIdDisabled)&&method == 0" + :codenumer="codenumer" + :sum="sum" + :disabled="editConfig.infomation.id || isIdDisabled" + :inputValue="inputValue" + @codeList="codeList" + /> + <span v-else-if="method == 0" style="color: #f56c6c" + >璇蜂紭鍏堥厤缃紪鐮佽鑼� + <el-button type="text" @click="numberClick"> + 閰嶇疆瑙勮寖 + </el-button + ></span + > + <span v-else>{{editConfig.title==='鏂板缓'? '鑷姩鐢熸垚': editConfig.infomation.number}}</span> </el-form-item> </el-col> <el-col :span="12"> @@ -234,8 +249,10 @@ import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog" import { getProductList } from "@/api/common/other" import SelectCommonDialog from "@/views/other/commonDialog/SelectCommonDialog" +import codeMixin from "@/views/client/followupRecords/mixin/codeMixin"; export default { name: "AddSalesReturnDialog", + mixins:[codeMixin], props: { editCommonConfig: { type: Object, @@ -300,8 +317,27 @@ this.setTableForm() this.getCommonData() this.getProductList() + this.formInfo(); + }, + watch:{ + 'editClientManageConfig.visible'(val){ + if(val){ + this.formInfo() + } + }, + 'editClientManageConfig.infomation.codeStandID'(){ + this.formInfo() + } }, methods: { + formInfo(){ + this.objCode.type='閿�鍞��璐х紪鐮�' + this.objCode.codeStandID = '' + if(this.editConfig.infomation.codeStandID){ + this.objCode.codeStandID = this.editConfig.infomation.codeStandID; + } + this.getRCodeStandardList(); + }, getCommonData() { getAllData() .then((res) => { @@ -383,7 +419,8 @@ salesReturnStatusId: data.salesReturnStatusId || 0, sourceId: this.SalesDetailsId, sourceType: 1 - } + }, + codeRule:this.codeRule, } return params }, -- Gitblit v1.8.0