|
@@ -16,38 +16,38 @@
|
|
|
<div style="margin-right: 1rem; color: #66a9f0">王小伟</div>
|
|
|
</div>
|
|
|
<div class="header_middle">
|
|
|
- <b-dropdown size="sm" text="Large" class="m-2" :disabled="is_use">
|
|
|
- <b-dropdown-item-button>Action</b-dropdown-item-button>
|
|
|
- <b-dropdown-item-button>Another action</b-dropdown-item-button>
|
|
|
- <b-dropdown-item-button>Something else here</b-dropdown-item-button>
|
|
|
+ <b-dropdown size="sm" text="产品数" class="m-2" :disabled="is_use">
|
|
|
+ <!--<b-dropdown-item-button>Action</b-dropdown-item-button>-->
|
|
|
+ <!--<b-dropdown-item-button>Another action</b-dropdown-item-button>-->
|
|
|
+ <!--<b-dropdown-item-button>Something else here</b-dropdown-item-button>-->
|
|
|
</b-dropdown>
|
|
|
- <b-dropdown size="sm" text="Large" class="m-2" :disabled="is_use">
|
|
|
- <b-dropdown-item-button>Action</b-dropdown-item-button>
|
|
|
- <b-dropdown-item-button>Another action</b-dropdown-item-button>
|
|
|
- <b-dropdown-item-button>Something else here</b-dropdown-item-button>
|
|
|
+ <b-dropdown size="sm" text="已包数" class="m-2" :disabled="is_use">
|
|
|
+ <!--<b-dropdown-item-button>Action</b-dropdown-item-button>-->
|
|
|
+ <!--<b-dropdown-item-button>Another action</b-dropdown-item-button>-->
|
|
|
+ <!--<b-dropdown-item-button>Something else here</b-dropdown-item-button>-->
|
|
|
</b-dropdown>
|
|
|
- <b-dropdown size="sm" text="Large" class="m-2" :disabled="is_use">
|
|
|
- <b-dropdown-item-button>Action</b-dropdown-item-button>
|
|
|
- <b-dropdown-item-button>Another action</b-dropdown-item-button>
|
|
|
- <b-dropdown-item-button>Something else here</b-dropdown-item-button>
|
|
|
+ <b-dropdown size="sm" text="未包数" class="m-2" :disabled="is_use">
|
|
|
+ <!--<b-dropdown-item-button>Action</b-dropdown-item-button>-->
|
|
|
+ <!--<b-dropdown-item-button>Another action</b-dropdown-item-button>-->
|
|
|
+ <!--<b-dropdown-item-button>Something else here</b-dropdown-item-button>-->
|
|
|
</b-dropdown>
|
|
|
</div>
|
|
|
<div class="header_middle1 ot">
|
|
|
- <div class="ft">58 </div>
|
|
|
- <div class="ft">12 </div>
|
|
|
- <div class="ft">12 </div>
|
|
|
+ <div class="ft">{{this.product_total}} </div>
|
|
|
+ <div class="ft">{{this.box_num}} </div>
|
|
|
+ <div class="ft">{{this.product_total-this.box_num}} </div>
|
|
|
</div>
|
|
|
<div class="header_footer">
|
|
|
- <div style="margin-left: 1rem">已完成56/10</div>
|
|
|
- <div style="margin-right: 1.4rem">已完成10%</div>
|
|
|
+ <!--<div style="margin-left: 1rem">已完成56/10</div>-->
|
|
|
+ <!--<div style="margin-right: 1.4rem">已完成10%</div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="bdy">
|
|
|
<table>
|
|
|
<tr style="height: 2rem">
|
|
|
- <th style="width: 3rem">派工单号</th>
|
|
|
<th style="width: 4rem">产品名称</th>
|
|
|
<th style="width: 3rem">规格型号</th>
|
|
|
+ <th style="width: 3rem">花色</th>
|
|
|
<th style="width: 3rem">已包装数量</th>
|
|
|
<th style="width: 3rem">未包装数量</th>
|
|
|
</tr>
|
|
@@ -57,13 +57,14 @@
|
|
|
@click="handleChoose(item, index)"
|
|
|
:class="item.is_choose ? 'choose_item' : ''"
|
|
|
>
|
|
|
- <td>
|
|
|
- {{ item.no }}
|
|
|
- </td>
|
|
|
+
|
|
|
<td>{{ item.material_code_show }}</td>
|
|
|
<td>{{item.specs }}</td>
|
|
|
- <td>{{ item.box_num }}</td>
|
|
|
- <td>{{ item.not_box_num }}</td>
|
|
|
+ <td>
|
|
|
+ {{ item.decor_code_show }}
|
|
|
+ </td>
|
|
|
+ <td>{{ item.box_num_total }}</td>
|
|
|
+ <td>{{ item.qty-item.box_num_total }}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
@@ -93,7 +94,9 @@ export default {
|
|
|
return {
|
|
|
tableData: [],
|
|
|
is_show: true,
|
|
|
- is_use: false
|
|
|
+ is_use: false,
|
|
|
+ product_total: 0,
|
|
|
+ box_num: 0,
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
@@ -101,15 +104,14 @@ export default {
|
|
|
// data.target = JSON.parse(localStorage.getItem('fyy_target'))
|
|
|
// }
|
|
|
this.tableData = []
|
|
|
- const fyyTarget = ('SO202308070002,SO202308070001').split(',')
|
|
|
- fyyTarget.forEach(v => {
|
|
|
- const data = {
|
|
|
- url: 'http://121.36.142.167:7774/jbl/api/module-data/sale_order/page',
|
|
|
- post: {"direction":"DESC","property":"id","fromClientType":"pc","number":0,"sorts":[],"rules":[{"field":"exe_sale_order_b.no","option":"LIKE_ANYWHERE","values":[v]}],"size":15,"specialConditions":[],"workflowSearchBean":{},"dynamicFormCode":"sale_order","dynamicFormTable":null,"ignoreField":true,"developmentSystemId":null,"debugFlag":true},
|
|
|
- header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOLFJPTEVfSU5URVJGQUNFIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0Njc0MTE0fQ.L3Di3K_cpF0rWSgvzbcLufLm8bkCxd3Y-xudfKzSm4F-qdpDr0hYWWQP5K5BYTNuZnu4tWpGmSW2KRHU0pjt-A', 'Content-Sign:a2898699a4433b413d8473e4b59d64b8', 'Content-Type:application/json']
|
|
|
- }
|
|
|
- this.initData(data)
|
|
|
- })
|
|
|
+ // const fyyTarget = ('SO202308070001').split(',')
|
|
|
+
|
|
|
+ const data = {
|
|
|
+ url: 'http://121.36.142.167:7774/jbl/api/module-data/sale_order/page',
|
|
|
+ post: {"direction":"DESC","property":"id","fromClientType":"pc","number":0,"sorts":[],"rules":[{"field":"exe_sale_order_b.no","option":"LIKE_ANYWHERE","values":["SO202308070001"]}],"size":15,"specialConditions":[],"workflowSearchBean":{},"dynamicFormCode":"sale_order","dynamicFormTable":null,"ignoreField":true,"developmentSystemId":null,"debugFlag":true},
|
|
|
+ header: ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOLFJPTEVfSU5URVJGQUNFIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0Njc0MTE0fQ.L3Di3K_cpF0rWSgvzbcLufLm8bkCxd3Y-xudfKzSm4F-qdpDr0hYWWQP5K5BYTNuZnu4tWpGmSW2KRHU0pjt-A', 'Content-Type:application/json']
|
|
|
+ }
|
|
|
+ this.initData(data)
|
|
|
},
|
|
|
methods: {
|
|
|
initData (row) {
|
|
@@ -117,7 +119,9 @@ export default {
|
|
|
res.data.content.forEach(v => {
|
|
|
v.is_choose = false
|
|
|
v.no = v.exe_sale_order_b.no
|
|
|
- v.box_num = v.box_num || 0
|
|
|
+ v.un_box_num = v.qty-v.box_num_total
|
|
|
+ this.product_total += v.qty
|
|
|
+ this.box_num += v.box_num_total
|
|
|
})
|
|
|
this.tableData.push(...res.data.content)
|
|
|
})
|