From 235f0b0e3605082bb2127dc6d87f4a7eef33c6de Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期三, 02 四月 2025 17:14:38 +0800 Subject: [PATCH] 标准库变更联调 --- src/views/standard/standardLibrary/components/bindSupplierDensityDialogAsk.vue | 96 ++++++++++------------------------------------- 1 files changed, 21 insertions(+), 75 deletions(-) diff --git a/src/views/standard/standardLibrary/components/bindSupplierDensityDialogAsk.vue b/src/views/standard/standardLibrary/components/bindSupplierDensityDialogAsk.vue index f73d856..b51195c 100644 --- a/src/views/standard/standardLibrary/components/bindSupplierDensityDialogAsk.vue +++ b/src/views/standard/standardLibrary/components/bindSupplierDensityDialogAsk.vue @@ -1,46 +1,17 @@ <template> <div> - <el-dialog - title="鍘傚瑕佹眰鍊肩粦瀹�" - :visible.sync="isShow" - width="800px" - @close="$emit('closeBindPartDialog')" - > - <div - class="body" - v-if="isShow" - style="height: 500px; overflow-y: auto; padding: 5px 0" - > - <el-table - ref="bindPartTable" - :data="bindPartData" - v-loading="bindPartTableLoading" - highlight-current-row - style="width: 100%" - > - <el-table-column - type="index" - width="70" - label="搴忓彿" - ></el-table-column> - <el-table-column - property="supplierName" - label="鍘傚" - width="200" - ></el-table-column> + <el-dialog title="鍘傚瑕佹眰鍊肩粦瀹�" :visible.sync="isShow" width="800px" @close="$emit('closeBindPartDialog')"> + <div class="body" v-if="isShow" style="height: 500px; overflow-y: auto; padding: 5px 0"> + <el-table ref="bindPartTable" :data="bindPartData" v-loading="bindPartTableLoading" highlight-current-row + style="width: 100%"> + <el-table-column type="index" width="70" label="搴忓彿"></el-table-column> + <el-table-column property="supplierName" label="鍘傚" width="200"></el-table-column> <el-table-column property="ask" label="瑕佹眰鍊�"></el-table-column> <el-table-column property="tell" label="瑕佹眰鎻忚堪"></el-table-column> <el-table-column label="鎿嶄綔" width="100"> <template slot-scope="scope"> - <el-button - type="text" - size="small" - @click="updateBind(scope.row, 'edit')" - >缂栬緫</el-button - > - <el-button type="text" size="small" @click="deleteBind(scope.row)" - >鍒犻櫎</el-button - > + <el-button type="text" size="small" @click="updateBind(scope.row, 'edit')">缂栬緫</el-button> + <el-button type="text" size="small" @click="deleteBind(scope.row)">鍒犻櫎</el-button> </template> </el-table-column> </el-table> @@ -53,55 +24,28 @@ <!-- </div>--> <span slot="footer" class="dialog-footer"> <el-button @click="$emit('closeBindPartDialog')">鍙� 娑�</el-button> - <el-button - type="primary" - @click="addBindPart('add')" - :loading="addBindLoad" - >鏂� 澧�</el-button - > + <el-button type="primary" @click="addBindPart('add')" :loading="addBindLoad">鏂� 澧�</el-button> </span> </el-dialog> - <el-dialog - title="鍘傚瑕佹眰鍊肩粦瀹�" - :visible.sync="addBindSupplierDensityDialog" - v-if="addBindSupplierDensityDialog" - width="400px" - @close="closeBindPartDialog" - :close-on-click-modal="false" - > + <el-dialog title="鍘傚瑕佹眰鍊肩粦瀹�" :visible.sync="addBindSupplierDensityDialog" v-if="addBindSupplierDensityDialog" + width="400px" @close="closeBindPartDialog" :close-on-click-modal="false"> <div class="body" v-if="addBindSupplierDensityDialog"> - <el-form - label-position="right" - label-width="100px" - ref="bindSupplierDensityData" - :rules="bindPartDataRules" - :model="bindSupplierDensityData" - > + <el-form label-position="right" label-width="100px" ref="bindSupplierDensityData" :rules="bindPartDataRules" + :model="bindSupplierDensityData"> <el-form-item label="鍘傚锛�" prop="supplierName"> - <el-input - v-model="bindSupplierDensityData.supplierName" - size="small" - ></el-input> + <el-input v-model="bindSupplierDensityData.supplierName" size="small"></el-input> </el-form-item> <el-form-item label="瑕佹眰鍊硷細" prop="ask"> - <el-input - v-model="bindSupplierDensityData.ask" - size="small" - ></el-input> + <el-input v-model="bindSupplierDensityData.ask" size="small"></el-input> </el-form-item> <el-form-item label="瑕佹眰鎻忚堪锛�" prop="tell"> - <el-input - v-model="bindSupplierDensityData.tell" - size="small" - ></el-input> + <el-input v-model="bindSupplierDensityData.tell" size="small"></el-input> </el-form-item> </el-form> </div> <span slot="footer" class="dialog-footer"> <el-button @click="closeBindPartDialog">鍙� 娑�</el-button> - <el-button type="primary" @click="submitBind" :loading="bindLoad" - >纭� 璁�</el-button - > + <el-button type="primary" @click="submitBind" :loading="bindLoad">纭� 璁�</el-button> </span> </el-dialog> </div> @@ -125,7 +69,7 @@ currentRow: { // 閫夋嫨鏈潯鏁版嵁鐨勪俊鎭� type: Object, - default: () => {}, + default: () => { }, }, }, data() { @@ -202,7 +146,7 @@ this.$message.error("鍒犻櫎澶辫触"); }); }) - .catch(() => {}); + .catch(() => { }); }, sizeChange(val) { this.page.size = val; @@ -236,6 +180,7 @@ this.addBindSupplierDensityDialog = false; this.$message.success("鎿嶄綔鎴愬姛"); this.searchTableData(); + this.$emit('refreshList') } }) .catch((err) => { @@ -251,6 +196,7 @@ this.addBindSupplierDensityDialog = false; this.$message.success("鎿嶄綔鎴愬姛"); this.searchTableData(); + this.$emit('refreshList') } }) .catch((err) => { -- Gitblit v1.9.3