Commit 18c4698d authored by 沈翠玲's avatar 沈翠玲

外协增加是否关单

parent 3eb55e28
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<view class="prod-body-left-task"> <view class="prod-body-left-task">
<zb-table ref="zbtable" :columns="tableColumn" :stripe="true" rowKey="taskWorkunitId" :cellStyle="cellStyle" <zb-table ref="zbtable" :columns="tableColumn" :stripe="true" rowKey="taskWorkunitId" :cellStyle="cellStyle"
:isTrClassStyle="isTrClassStyle" @rowClick="rowClick" @toggleRowSelection="toggleRowSelection" :isTrClassStyle="isTrClassStyle" @rowClick="rowClick" @toggleRowSelection="toggleRowSelection"
@toggleAllSelection="toggleAllSelection" :border="true" :data="tableData"></zb-table> :border="true" :data="tableData"></zb-table>
</view> </view>
<view class="prod-body-left-num">可选订单数:{{ tableData.length }}</view> <view class="prod-body-left-num">可选订单数:{{ tableData.length }}</view>
</view> </view>
...@@ -277,12 +277,12 @@ ...@@ -277,12 +277,12 @@
{{ feedback.workorderCode }} {{ feedback.workorderCode }}
</u-form-item> </u-form-item>
</u-col> </u-col>
<u-col span="4"> <u-col span="3">
<u-form-item label="采购单号:" prop="quantity"> <u-form-item label="采购单号:" prop="quantity">
{{ feedback.assistProcessCode }} {{ feedback.assistProcessCode }}
</u-form-item> </u-form-item>
</u-col> </u-col>
<u-col span="4"> <u-col span="5">
<u-form-item label="工序:" prop="nickName"> <u-form-item label="工序:" prop="nickName">
{{ feedback.processName }} {{ feedback.processName }}
</u-form-item> </u-form-item>
...@@ -432,6 +432,16 @@ ...@@ -432,6 +432,16 @@
</u-radio-group> </u-radio-group>
</view> </view>
</u-form-item> </u-form-item>
</u-col>
<u-col span="6" v-if="isWaiXie">
<u-form-item label="是否关单:" prop="whether">
<view class="uni-list-item__extra">
<u-radio-group v-model="feedback.closeType">
<u-radio :name="1"></u-radio>
<u-radio :name="0"></u-radio>
</u-radio-group>
</view>
</u-form-item>
</u-col> </u-col>
<u-col span="6" v-if="!isWaiXie" v-show="!buttonShow || buttonShow.MaterialReturnView === '1'"> <u-col span="6" v-if="!isWaiXie" v-show="!buttonShow || buttonShow.MaterialReturnView === '1'">
<u-form-item label="退料:" prop="returnMa"> <u-form-item label="退料:" prop="returnMa">
...@@ -1278,7 +1288,7 @@ export default { ...@@ -1278,7 +1288,7 @@ export default {
], ],
tableColumn: [ tableColumn: [
{ {
type: 'selection', type: 'radio',
width: 60 width: 60
}, },
{ {
...@@ -1581,7 +1591,7 @@ export default { ...@@ -1581,7 +1591,7 @@ export default {
if (this.isWaiXie) { if (this.isWaiXie) {
this.tableColumn = [ this.tableColumn = [
{ {
type: 'selection', type: 'radio',
width: 60 width: 60
}, },
{ {
...@@ -1636,7 +1646,7 @@ export default { ...@@ -1636,7 +1646,7 @@ export default {
} else { } else {
this.tableColumn = [ this.tableColumn = [
{ {
type: 'selection', type: 'radio',
width: 60 width: 60
}, },
{ {
...@@ -2153,19 +2163,15 @@ export default { ...@@ -2153,19 +2163,15 @@ export default {
}); });
}, },
rowClick(row, index) { rowClick(row, index) {
this.$refs.zbtable.toggleRowSelection(row); this.$refs.zbtable.handleRadio({target:{value: row.taskWorkunitId}});
this.curTaskInfo = row; this.curTaskInfo = row;
}, },
getCode(row) { getCode(row) {
this.usePersonData = row; this.usePersonData = row;
this.userTempVisible = true; this.userTempVisible = true;
}, },
toggleAllSelection(checked, arr) {
// console.log(arr, 'this.tableSelectData');
this.tableSelectData = arr;
},
toggleRowSelection(checked, arr) { toggleRowSelection(checked, arr) {
// console.log(arr, 'this.tableSelectData'); console.log(arr, 'this.tableSelectData');
this.tableSelectData = arr; this.tableSelectData = arr;
if(this.tableSelectData.length > 0) { if(this.tableSelectData.length > 0) {
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
</template> </template>
<template v-else-if="ite.type === 'radio'"> <template v-else-if="ite.type === 'radio'">
<view class="checkbox-item"> <view class="checkbox-item">
<radio :value="item[rowKey] + ''" /> <radio :value="item[rowKey] + ''" :checked="selectArr && selectArr[0] && selectArr[0][rowKey] === item[rowKey]" />
</view> </view>
</template> </template>
<template v-else-if="ite.type === 'index'"> <template v-else-if="ite.type === 'index'">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment