mushencc hace 3 años
padre
commit
a199f60f7a

+ 7 - 1
src/components/selects/reference/index.vue

@@ -606,13 +606,19 @@ export default {
         if (res.code == 200) {
           const deep_obj = JSON.parse(JSON.stringify(res.data))
           this.projectDetail = deep_obj
-          this.parts_tableData = res.data.list
+          this.parts_tableData = res.data
         }
       }).catch((err) => { });
     },
     getData (params) {
       params.end_time = Date.parse(params.end_time).toString().slice(0,10)
       params.start_time = Date.parse(params.start_time).toString().slice(0,10)
+      if(params.end_time == 'NaN'){
+        params.end_time = ''
+      }
+      if(params.start_time == 'NaN'){
+        params.start_time == ''
+      }
       this.axios(this.get_project_url, { params: params }).then((res) => {
         if (res.code == 200) {
           res.data.data.map((v) => (v.check = false))

+ 15 - 3
src/views/BasicSettings/Setting.vue

@@ -2,13 +2,17 @@
 <div>
       <Toptitle title="项目设置">
       </Toptitle>
-     <div style="padding: 10px" class="setting" dis-hover>
+     <div style="padding: 10px" class="setting" >
         <Card :title="examine_title" :padding="0" >
             <CellGroup>
                 <Cell :title="item.title" v-for="(item,index) in cell_title" :key="index">
                     <i-switch v-model="item.state" slot="extra"  @on-change="change($event,index)" />
                 </Cell>
             </CellGroup>
+            <Tooltip max-width="200" :content="examine_remark" 
+            style="min-width:200px;position:absolute;right:-168px;top:169px;cursor: pointer">
+           <Icon type="md-help-circle" size="24" />
+            </Tooltip>
         </Card>
       <Card :title="logo_title"  :padding="0"   >
               <a @click="upload" class="upload_pic">上传</a>
@@ -42,12 +46,15 @@
                   />
                 </div>
               </div>
+                 <Tooltip max-width="200" :content="logo_remark" 
+            style="min-width:200px;position:absolute;right:-168px;top:169px;cursor: pointer">
+           <Icon type="md-help-circle" size="24" />
+            </Tooltip>
         </Card>
     </div>
 </div>
 </template>
 <script>
-import { toArray } from 'xe-utils';
 export default {
     data(){
         return {
@@ -62,7 +69,9 @@ export default {
                 logo_title:{},
                 cell_title:{},
                 tempItem_op:{},
-                examine_data:{}
+                examine_data:{},
+                examine_remark:'',
+                logo_remark:''
             }
     },
    mounted(){
@@ -71,6 +80,7 @@ export default {
             this.content.forEach(item =>{
                   if(item.sub_type == 2){
                       this.examine_title = item.title
+                      this.examine_remark = item.remark
                       this.examine_data = item
                       this.cell_title =item.content
                       this.cell_title.forEach(item=>{
@@ -84,6 +94,7 @@ export default {
                   }
                   if(item.sub_type == 3){
                       this.logo_title = item.title
+                      this.logo_remark = item.remark
                       this.tempItem_op = item
                       this.tempItem.url = item.content.split(',')
                       console.log(this.tempItem.url)
@@ -209,6 +220,7 @@ export default {
          height: 200px;
          margin: 10px;
          border-radius: 20px;
+         position: relative;
   .ivu-card:hover{
       box-shadow: darkgrey 2px 2px 2px 2px ;//边框阴影
   }

+ 6 - 0
src/views/BasicSettings/SuppliersManage/SippliersList.vue

@@ -115,6 +115,9 @@
               :data="tableData"
             >
               <template slot="setSlot" slot-scope="{ row, index }">
+                  <a style="margin: 0 5px" @click="handleSet(4, row, index)"
+                  >查看</a
+                >
                 <a style="margin: 0 5px" @click="handleSet(2, row, index)"
                   >编辑</a
                 >
@@ -312,6 +315,9 @@ export default {
             onCancel: () => {},
           });
           break;
+          case 4:
+            this.handleGoPage(type, row.id);
+          break;
       }
     },
     append(data) {

+ 31 - 5
src/views/BasicSettings/SuppliersManage/SippliersListEdit.vue

@@ -17,6 +17,7 @@
           @click="postForm('formValidate')"
           type="primary"
           style="margin-right:10px;"
+          v-show="$route.query.type!=4"
           >保存</Button
         >
       </slot>
@@ -32,7 +33,8 @@
           <span>{{ formData.type_title }}</span>
         </FormItem>
         <FormItem label="业务员:" prop="user">
-          <Select v-model="formData.sys_user_id" style="width:200px">
+          <span v-if="$route.query.type == 4">{{nickname}}</span>
+          <Select v-model="formData.sys_user_id" style="width:200px" v-else>
             <Option
               v-for="item in salesmanList"
               :value="item.id"
@@ -42,36 +44,45 @@
           </Select>
         </FormItem>
         <FormItem label="供应商编码:" prop="code">
+          <span v-if="$route.query.type == 4">{{formData.code}}</span>
           <Input
             v-model="formData.code"
             style="width:200px"
             placeholder="请输入供应商编码"
+            v-else
           />
           <!-- :disabled="$route.query.type==2" -->
         </FormItem>
         <FormItem label="供应商联系人:">
+          <span v-if="$route.query.type == 4">{{formData.contact}}</span>
           <Input
             v-model="formData.contact"
             style="width:200px"
             placeholder="请输入供应商联系人"
+            v-else
           />
         </FormItem>
         <FormItem label="供应商名称:" prop="title">
+          <span v-if="$route.query.type == 4">{{formData.title}}</span>
           <Input
             v-model="formData.title"
             style="width:200px"
             placeholder="请输入供应商名称"
+            v-else
           />
         </FormItem>
         <FormItem label="联系人手机号:">
+          <span v-if="$route.query.type == 4">{{formData.mobile}}</span>
           <Input
             v-model="formData.mobile"
             style="width:200px"
             placeholder="请输入联系人手机号"
+            v-else
           />
         </FormItem>
         <FormItem label="地区:">
-          <Tooltip :content="formData.area" placement="top">
+        <span v-if="$route.query.type == 4">{{formData.area}}</span>
+          <Tooltip :content="formData.area" placement="top" v-else>
             <Input
               v-model="formData.area"
               readonly
@@ -85,21 +96,26 @@
           </Tooltip>
         </FormItem>
         <FormItem label="是否启用:" prop="state">
-          <Select v-model="formData.state" style="width:200px">
+          <span v-if="$route.query.type == 4">{{formData.state == 1?'启用':'停用'}}</span>
+          <Select v-model="formData.state" style="width:200px" v-else>
             <Option :value="1">启用</Option>
             <Option :value="0">停用</Option>
           </Select>
         </FormItem>
         <FormItem label="地址:">
+          <span v-if="$route.query.type == 4">{{formData.address}}</span>
           <Input
             v-model="formData.address"
             style="width:200px"
             type="textarea"
             placeholder="请输入地址"
+            v-else
           />
         </FormItem>
         <FormItem label="备注:">
+           <span v-if="$route.query.type == 4">{{formData.remark}}</span>
           <Input
+          v-else
             v-model="formData.remark"
             style="width:200px"
             type="textarea"
@@ -235,7 +251,7 @@ export default {
     this.axios("/api/basic_area_list").then(
       (res) => (this.treeData[0].sub = res.data)
     );
-    this.$route.query.type == 2
+    this.$route.query.type == 2|| this.$route.query.type == 4
       ? this.axios({
           method: "get",
           url: "/api/supply_detail",
@@ -350,7 +366,17 @@ export default {
     },
   },
   // 监听属性 类似于data概念
-  computed: {},
+  computed: {
+    nickname(){
+       let name = '';
+       this.salesmanList.forEach(item=>{
+         if(item.id == this.formData.sys_user_id){
+           name = item.nickname
+         }
+       })
+       return name
+    }
+  },
   // 监控data中的数据变化
   watch: {},
   beforeCreate() {}, // 生命周期 - 创建之前

+ 1 - 1
src/views/BidSystem/DeepeningOrder/list.vue

@@ -433,7 +433,7 @@ export default {
       this.getData(this.proxyObj);
     },
     async exportData() {
-      const res = await this.axios("/api/measure_orders_export", {
+      const res = await this.axios("/api/order_area_deep_export", {
         params: { ...this.proxyObj },
       });
       if (res.code == 200) {

+ 11 - 3
src/views/BidSystem/ProductDeOrder/deorderdetail.vue

@@ -1,5 +1,11 @@
 <template>
   <div class="BidSystemProductDeOrderDeorderdetail">
+     <Modal class-name="vertical-modal" title='保存' v-model='modal_show' :width="400" @on-ok="postData"
+        @on-cancel="modal_show = false" :height='300'>
+        
+                <span>确认保存吗?</span>
+       
+        </Modal>
     <Toptitle
       :title="type == 1 ? '拆单编辑' : type == 2 ? '拆单详情' : '拆单变更'"
     >
@@ -12,7 +18,7 @@
           >返回</Button
         >
         <Button
-          @click="postData()"
+          @click="modal_show = true"
           type="primary"
           v-if="type != 2"
           ghost
@@ -1031,6 +1037,7 @@ export default {
   data() {
     // 这里存放数据
     return {
+      modal_show:false,
       // 1拆单 2详情
       type: this.$route.query.type,
       formData: {
@@ -2271,6 +2278,7 @@ export default {
       if (sum != 100) {
         this.$Message.error("产值比之和须为100");
       } else {
+
         // 部件保存
         let save_sucess = true;
         for (let i in this.formData.parts) {
@@ -2719,8 +2727,8 @@ export default {
   }
 }
 /deep/.ivu-modal-body {
-  height: 750px;
-  overflow: auto;
+  // height: 750px;
+  // overflow: auto;
 }
 .modal_content {
   display: flex;

+ 36 - 0
src/views/ProcessLine/index.vue

@@ -125,6 +125,11 @@
               </Tooltip>
             </SlickItem>
           </SlickList>
+          <div class="total_price">
+             <div>工时合计:{{worktime_total}}</div>
+           <div>工价合计:{{workprice_total}}</div>
+          </div>
+          
         </div>
         <div class="modal_content_right">
           <div v-for="(item, index) of info.bps" :key="index">
@@ -424,14 +429,20 @@ export default {
           case 1:
             this.showModal = true;
             this.isCopy = true;
+            this.isAdd = false;
+            this.isCheck =false;
             break;
           case 2:
             this.showModal = true;
+            this.isCopy = false;
             this.isCheck = false;
+            this.isAdd =false;
             break;
           case 3:
             this.showModal = true;
             this.isCheck = true;
+            this.isAdd =false;
+            this.isCopy =false;
             break;
           case 4:
             this.$Modal.confirm({
@@ -579,6 +590,26 @@ export default {
   // 监听属性 类似于data概念
   computed: {
     ...mapState(["persimissionData"]),
+    worktime_total(){
+      let total = 0;
+      if(this.selectTags == []){
+           total = 0
+      }else{
+      this.selectTags.forEach(item=>{
+        total = total + item.time 
+      })}
+       return total
+    },
+    workprice_total(){
+       let total = 0;
+      if(this.selectTags == []){
+           total = 0
+      }else{
+      this.selectTags.forEach(item=>{
+        total = total + item.wages
+      })}
+       return this.total
+    }
   },
   // 监控data中的数据变化
   watch: {},
@@ -615,6 +646,7 @@ export default {
   justify-content: space-around;
   height: 100%;
   .modal_content_left {
+    position: relative;
     max-width: 40%;
     min-width: 30%;
     border-right: 1px solid #d8d8d8;
@@ -647,4 +679,8 @@ export default {
   overflow: hidden;
   overflow-y: auto;
 }
+.total_price{
+  position: absolute;
+  top:90%
+}
 </style>

+ 6 - 6
src/views/ProductionOrderList/ProductionPlanlist/list.vue

@@ -406,11 +406,11 @@ export default {
             h(
               "span",
               {},
-              params.row.state == 1
+              params.row.state == 0
                 ? "未派工"
-                : params.row.state == 2
+                : params.row.state == 1
                 ? "派工中"
-                : params.row.state == 3
+                : params.row.state == 2
                 ? "完成"
                 : ""
             ),
@@ -602,9 +602,9 @@ export default {
           serverName: "state",
           value: "",
           option: [
-            { label: "未派工", value: 1 },
-            { label: "派工中", value: 2 },
-            { label: "完成", value: 3 },
+            { label: "未派工", value: 0 },
+            { label: "派工中", value: 1 },
+            { label: "完成", value: 2 },
           ],
         },
       ];

+ 62 - 20
src/views/PurchasingManage/ArrivalOrder/edit.vue

@@ -110,6 +110,29 @@
              show-summary
              :summary-method="handleSummary"
              :data="tableData">
+            <template slot="numberSet" slot-scope="{row , index }">
+               <Tooltip
+            placement="left"
+            @on-popper-show="handleToolShow(index, row)"
+          >
+            <div slot="content">
+              <div>
+                <div v-for="(_item,_index) in warehouse" :key="_index">
+                  {{_item.warehouse_title}}:{{_item.num}}
+                </div>
+              </div>
+            </div>
+            <Input
+              type="text"
+              v-show="!isCheck"
+              size="small"
+              v-model="tableData[index].num"
+              placeholder="数量"
+            >
+            </Input>
+            <span v-show="isCheck">{{ tableData[index].num }}</span>
+          </Tooltip>
+        </template>
         <template slot="setSlot"
                   slot-scope="{row,index}">
           <a style="margin:0 5px"
@@ -347,26 +370,26 @@ export default {
         },
         { title: '计量单位', key: 'unit', align: 'center', minWidth: 100 },
         {
-          title: '到货数量', key: 'num', align: 'center', minWidth: 120,
-          render: (h, params) => {
-            const { row, index } = params
-            const currentRow = JSON.parse(JSON.stringify(this.tableData[index]))
-            return this.isCheck ? h('span', currentRow.num) : h('Input', {
-              props: {
-                value: currentRow.num,
-                type: 'text'
-              },
-              on: {
-                'on-change': (e) => {
-                  currentRow.num = e.target.value
-                  currentRow.total_price = (1 * currentRow.price * currentRow.num).toFixed(2)
-                  currentRow.no_tax_amount = (1 * currentRow.no_tax_price * currentRow.num).toFixed(2)
-                  currentRow.tax_amount = (1 * currentRow.total_price - 1 * currentRow.no_tax_amount).toFixed(2)
-                  this.tableData.splice(index, 1, currentRow);
-                }
-              }
-            })
-          }
+          title: '到货数量', key: 'num', align: 'center', minWidth: 120,slot:'numberSet'
+          // render: (h, params) => {
+          //   const { row, index } = params
+          //   const currentRow = JSON.parse(JSON.stringify(this.tableData[index]))
+          //   return this.isCheck ? h('span', currentRow.num) : h('Input', {
+          //     props: {
+          //       value: currentRow.num,
+          //       type: 'text'
+          //     },
+          //     on: {
+          //       'on-change': (e) => {
+          //         currentRow.num = e.target.value
+          //         currentRow.total_price = (1 * currentRow.price * currentRow.num).toFixed(2)
+          //         currentRow.no_tax_amount = (1 * currentRow.no_tax_price * currentRow.num).toFixed(2)
+          //         currentRow.tax_amount = (1 * currentRow.total_price - 1 * currentRow.no_tax_amount).toFixed(2)
+          //         this.tableData.splice(index, 1, currentRow);
+          //       }
+          //     }
+          //   })
+          // }
         },
         {
           title: '无税单价', key: 'no_tax_price', align: 'center', minWidth: 120,
@@ -516,6 +539,7 @@ export default {
         //   total_price: ''
         // }
       ],
+      warehouse:'',
       showModal: false,
       showProjectModal: false,
       showSupplierModal: false,
@@ -679,6 +703,24 @@ export default {
     }
   },
   methods: {
+     handleToolShow(index, row) {
+      if (this.warehouse) {
+        return
+      } else {
+        this.axios
+          .get("/api/warehouse_stock_number", {
+            params: {
+              material_id: row.material_id,
+              material_detail_id: row.material_detail_id,
+            },
+          })
+          .then((res) => {
+              this.warehouse= res.data
+          });
+      }
+      // this.warehouse.num = this.warehouseTotal[index].num;
+      // this.warehouse.warehouseName = this.warehouseTotal[index].warehouseName
+    },
     initData (purchase_order_arrive_no) {
       this.axios({
         method: 'get',

+ 71 - 21
src/views/PurchasingManage/PurchasingOrder/edit.vue

@@ -147,7 +147,30 @@
       <Table :columns="tableColumns"
              border
              :data="tableData">
-
+       <template slot="numberSet" slot-scope="{row , index }">
+           <Tooltip
+            placement="left"
+            @on-popper-show="handleToolShow(index, row)"
+          >
+            <div slot="content">
+              <div>
+                <div v-for="(_item,_index) in warehouse" :key="_index">
+                  {{_item.warehouse_title}}:{{_item.num}}
+                </div>
+              </div>
+            </div>
+            <Input
+              type="text"
+              v-show="!isCheck"
+              size="small"
+              v-model="tableData[index].num"
+              placeholder="数量"
+              on-change="changenum"
+            >
+            </Input>
+            <span v-show="isCheck">{{ tableData[index].num }}</span>
+          </Tooltip>
+        </template>
         <template slot="setSlot"
                   slot-scope="{row,index}">
           <a style="margin:0 5px"
@@ -394,26 +417,26 @@ export default {
         },
         { title: '计量单位', key: 'unit', align: 'center', minWidth: 100 },
         {
-          title: '采购数量', key: 'num', align: 'center', minWidth: 120,
-          render: (h, params) => {
-            const { row, index } = params
-            const currentRow = JSON.parse(JSON.stringify(this.tableData[index]))
-            return this.isCheck ? h('span', {}, currentRow.num) : h('Input', {
-              props: {
-                value: currentRow.num,
-                type: 'text'
-              },
-              on: {
-                'on-change': (e) => {
-                  currentRow.num = e.target.value
-                  currentRow.total_price = (1 * currentRow.price * currentRow.num).toFixed(2)
-                  currentRow.no_tax_amount = (1 * currentRow.no_tax_price * currentRow.num).toFixed(2)
-                  currentRow.tax_amount = (1 * currentRow.total_price - 1 * currentRow.no_tax_amount).toFixed(2)
-                  this.tableData.splice(index, 1, currentRow);
-                }
-              }
-            })
-          }
+          title: '采购数量', key: 'num', align: 'center', minWidth: 120,slot:"numberSet"
+          // render: (h, params) => {
+          //   const { row, index } = params
+          //   const currentRow = JSON.parse(JSON.stringify(this.tableData[index]))
+          //   return this.isCheck ? h('span', {}, currentRow.num) : h('Input', {
+          //     props: {
+          //       value: currentRow.num,
+          //       type: 'text'
+          //     },
+          //     on: {
+          //       'on-change': (e) => {
+          //         currentRow.num = e.target.value
+          //         currentRow.total_price = (1 * currentRow.price * currentRow.num).toFixed(2)
+          //         currentRow.no_tax_amount = (1 * currentRow.no_tax_price * currentRow.num).toFixed(2)
+          //         currentRow.tax_amount = (1 * currentRow.total_price - 1 * currentRow.no_tax_amount).toFixed(2)
+          //         this.tableData.splice(index, 1, currentRow);
+          //       }
+          //     }
+          //   })
+          // }
         },
         {
           title: '无税单价', key: 'no_tax_price', align: 'center', minWidth: 120,
@@ -566,6 +589,7 @@ export default {
       modal_supplier_page_size: 10,
       modal_supplier_total: 0,
       currentChoose: {},
+      warehouse:'',
       modalProjectTableColumns: [
         {
           title: '选择', key: '', align: 'center', minWidth: 60,
@@ -722,6 +746,31 @@ export default {
     }
   },
   methods: {
+    changenum(e){
+         currentRow.num = e.target.value
+                  currentRow.total_price = (1 * currentRow.price * currentRow.num).toFixed(2)
+                  currentRow.no_tax_amount = (1 * currentRow.no_tax_price * currentRow.num).toFixed(2)
+                  currentRow.tax_amount = (1 * currentRow.total_price - 1 * currentRow.no_tax_amount).toFixed(2)
+                  this.tableData.splice(index, 1, currentRow);
+    },
+       handleToolShow(index, row) {
+      if (this.warehouse) {
+        return
+      } else {
+        this.axios
+          .get("/api/warehouse_stock_number", {
+            params: {
+              material_id: row.material_id,
+              material_detail_id: row.material_detail_id,
+            },
+          })
+          .then((res) => {
+              this.warehouse= res.data
+          });
+      }
+      // this.warehouse.num = this.warehouseTotal[index].num;
+      // this.warehouse.warehouseName = this.warehouseTotal[index].warehouseName
+    },
     initData (purchase_order_no) {
       this.axios({
         method: 'get',
@@ -800,6 +849,7 @@ export default {
         type,
         title: '参照请购单',
         then: (result, data) => {
+          console.log(result)
           result.forEach(element => {
             element.num = 0
             element.no_tax_price = 0

+ 11 - 4
src/views/PurchasingManage/PurchasingOrder/list.vue

@@ -11,6 +11,7 @@
                 style="margin-right:10px;">编码规则</Button> -->
       </slot>
     </Toptitle>
+    <div class="content">
     <div class="purchase_order_search">
       <Form :label-width="90"
             :model="searchData">
@@ -133,7 +134,10 @@
                @click="handleSet(5,row,index)">提交</a>
           </template>
         </Table>
-        <div class="purchase_order_content_page">
+      </div>
+    </div>
+    </div>
+    <div class="purchase_order_content_page">
           <Page :page-size-opts="[10, 20, 30, 40,100]"
                 @on-page-size-change='changeSize'
                 @on-change='changePage'
@@ -143,8 +147,6 @@
                 show-sizer
                 :page-size='pageSize' />
         </div>
-      </div>
-    </div>
   </div>
 </template>
 
@@ -370,10 +372,15 @@ export default {
     justify-content: flex-end;
     padding: 20px 0;
   }
-  .purchase_order_content_page {
+ 
+}
+ .purchase_order_content_page {
     display: flex;
     justify-content: center;
     padding-top: 20px;
   }
+.content{
+  overflow: auto;
+  height: 650px;
 }
 </style>

+ 62 - 21
src/views/PurchasingManage/QualitycontrolOrder/edit.vue

@@ -97,7 +97,29 @@
       <Table :columns="tableColumns"
              border
              :data="tableData">
-
+    <template slot="numberSet" slot-scope="{row , index }">
+               <Tooltip
+            placement="left"
+            @on-popper-show="handleToolShow(index, row)"
+          >
+            <div slot="content">
+              <div>
+                <div v-for="(_item,_index) in warehouse" :key="_index">
+                  {{_item.warehouse_title}}:{{_item.num}}
+                </div>
+              </div>
+            </div>
+            <Input
+              type="text"
+              v-show="!isCheck"
+              size="small"
+              v-model="tableData[index].num"
+              placeholder="数量"
+            >
+            </Input>
+            <span v-show="isCheck">{{ tableData[index].num }}</span>
+          </Tooltip>
+        </template>
         <template slot="setSlot"
                   slot-scope="{row,index}">
           <a style="margin:0 5px"
@@ -279,6 +301,7 @@ export default {
   data () {
     // 这里存放数据
     return {
+      warehouse:'',
       fax_modify: '',
       searchData: {
         client_name: ''
@@ -339,26 +362,26 @@ export default {
         },
         { title: '计量单位', key: 'unit', align: 'center', minWidth: 100 },
         {
-          title: '质检数量', key: 'num', align: 'center', minWidth: 120,
-          render: (h, params) => {
-            const { row, index } = params
-            const currentRow = JSON.parse(JSON.stringify(this.tableData[index]))
-            return this.isCheck ? h('span', {}, currentRow.num) : h('Input', {
-              props: {
-                value: currentRow.num,
-                type: 'text'
-              },
-              on: {
-                'on-change': (e) => {
-                  currentRow.num = e.target.value
-                  currentRow.total_price = (1 * currentRow.price * currentRow.num).toFixed(2)
-                  currentRow.no_tax_amount = (1 * currentRow.no_tax_price * currentRow.num).toFixed(2)
-                  currentRow.tax_amount = (1 * currentRow.total_price - 1 * currentRow.no_tax_amount).toFixed(2)
-                  this.tableData.splice(index, 1, currentRow);
-                }
-              }
-            })
-          }
+          title: '质检数量', key: 'num', align: 'center', minWidth: 120,slot:'numberSet'
+          // render: (h, params) => {
+          //   const { row, index } = params
+          //   const currentRow = JSON.parse(JSON.stringify(this.tableData[index]))
+          //   return this.isCheck ? h('span', {}, currentRow.num) : h('Input', {
+          //     props: {
+          //       value: currentRow.num,
+          //       type: 'text'
+          //     },
+          //     on: {
+          //       'on-change': (e) => {
+          //         currentRow.num = e.target.value
+          //         currentRow.total_price = (1 * currentRow.price * currentRow.num).toFixed(2)
+          //         currentRow.no_tax_amount = (1 * currentRow.no_tax_price * currentRow.num).toFixed(2)
+          //         currentRow.tax_amount = (1 * currentRow.total_price - 1 * currentRow.no_tax_amount).toFixed(2)
+          //         this.tableData.splice(index, 1, currentRow);
+          //       }
+          //     }
+          //   })
+          // }
         },
         { title: '操作', key: 'code', align: 'center', minWidth: 100, slot: 'setSlot' },
       ],
@@ -534,6 +557,24 @@ export default {
     }
   },
   methods: {
+      handleToolShow(index, row) {
+      if (this.warehouse) {
+        return
+      } else {
+        this.axios
+          .get("/api/warehouse_stock_number", {
+            params: {
+              material_id: row.material_id,
+              material_detail_id: row.material_detail_id,
+            },
+          })
+          .then((res) => {
+              this.warehouse= res.data
+          });
+      }
+      // this.warehouse.num = this.warehouseTotal[index].num;
+      // this.warehouse.warehouseName = this.warehouseTotal[index].warehouseName
+    },
     initData (purchase_order_quality_no) {
       this.axios({
         method: 'get',