liangbowen 2 bulan lalu
induk
melakukan
ab92572ba1

+ 28 - 3
src/views/page/consumCataManage-sup/catalogdetails.vue

@@ -368,6 +368,7 @@
                   <el-input
                     maxlength="50"
                     v-model="infoData.purcPric"
+                    @change="purcPricChane"
                     placeholder="请输入采购价"
                   ></el-input>
                 </el-form-item>
@@ -862,15 +863,39 @@ export default {
     }
   },
   methods: {
+    //挂网时根据挂网价格定采购价
+    purcPricChane(val) {
+      if (!this.isShow) {
+        return;
+      }
+      let that = this;
+      this.$refs.planForm.validateField("purcPric", (error) => {
+        if (!error) {
+          if (Number(val) > Number(this.infoData.pubonlnPric)) {
+            this.$confirm("采购价大于挂网价是否继续修改", "提示", {
+              confirmButtonText: "确定",
+              cancelButtonText: "取消",
+              type: "warning",
+            })
+              .then(() => {
+                   
+              })
+              .catch(() => {
+                this.infoData.purcPric = "";
+              });
+          }
+        }
+      });
+    },
     //存储方式和温度联动
     storageChage(val) {
       if (val == "常温") {
         this.infoData.stogTemp = "15℃-25℃";
       }
-       if (val == "冷藏") {
+      if (val == "冷藏") {
         this.infoData.stogTemp = "2℃-8℃";
       }
-       if (val == "冷冻") {
+      if (val == "冷冻") {
         this.infoData.stogTemp = "-10℃-2℃";
       }
     },
@@ -981,7 +1006,7 @@ export default {
     },
     // 整体提交
     handleSubmit() {
-      console.log('在这走了吗');
+      console.log("在这走了吗");
       this.$refs["planForm"].validate((valid) => {
         if (valid) {
           this.$confirm("确认提交", "提示", {

+ 4 - 4
src/views/page/consumCataManage-sup/distributionmanage.vue

@@ -186,7 +186,7 @@
           <img src="@/assets/nopage.png" alt />
           <p>暂无数据</p>
         </template>
-        <el-table-column fixed type="index" label="序号" width="60" />
+        <el-table-column fixed type="index" label="序号" width="50" />
         <el-table-column label="耗材信息" min-width="340">
           <template slot-scope="scope">
             <mcs-info :info="scope.row"></mcs-info>
@@ -196,7 +196,7 @@
         <el-table-column label="规格" prop="spec" width="80" />
         <el-table-column label="型号" prop="mol" width="80" />
         <el-table-column label="材质" prop="matl" width="80" />
-        <el-table-column label="是否集采" prop="isFas" width="80">
+        <el-table-column label="是否集采" prop="isFas" width="70">
           <template #default="{ row }">
             <span v-if="row.isFas == '0'">否</span>
             <span v-if="row.isFas == '1'">是</span>
@@ -205,7 +205,7 @@
         <el-table-column label="生效时间" prop="crteTime" width="140" />
         <el-table-column label="采购单位" prop="purcUnt" width="80" />
         <el-table-column label="采购价" prop="purcPric" width="80" />
-        <el-table-column label="是否挂网" prop="isPub" width="80" fixed="right">
+        <el-table-column label="是否挂网" prop="isPub" width="70" fixed="right">
           <template #default="{ row }">
             <span v-if="row.isPub == '1'">是</span>
             <span v-if="row.isPub == '0'">否</span>
@@ -219,7 +219,7 @@
             <span v-if="row.status == 'R'">驳回 </span>
           </template>
         </el-table-column> -->
-        <el-table-column fixed="right" label="操作" width="160">
+        <el-table-column fixed="right" label="操作" width="50">
           <template slot-scope="scope">
             <div>
               <el-button type="text" @click="handleDui(scope.row)"

+ 1 - 1
src/views/page/orderManage-sup/purOrderAccept/index.vue

@@ -101,7 +101,7 @@
                 <span v-if="row.stas == 'D'">已关闭</span>
               </template>
             </el-table-column>
-            <el-table-column label="操作" width="100">
+            <el-table-column label="操作" width="50">
               <template slot-scope="scope">
                 <el-button type="text" @click="handleDetail(scope.row)"
                   >详情</el-button