|
@@ -138,7 +138,8 @@
|
|
|
</span>
|
|
|
<!-- 计划员 -->
|
|
|
<span slot="jhyByData" slot-scope="text, record, index">
|
|
|
- <a-select v-model="record.jhyByData" style="width:100%" show-search :filterOption="filterOption" @change="handleChange(record)">
|
|
|
+ <a-select v-model="record.jhyByData" style="width:100%" mode="multiple"
|
|
|
+ show-search :filterOption="filterOption" @change="handleChange(record)">
|
|
|
<a-select-option
|
|
|
v-for="(item,index) in jhyNameOption"
|
|
|
:key="index"
|
|
@@ -284,7 +285,7 @@
|
|
|
{
|
|
|
// title: '计划员',
|
|
|
dataIndex: 'jhyByData',
|
|
|
- width: '9%',
|
|
|
+ width: '13%',
|
|
|
ellipsis: true,
|
|
|
scopedSlots: { customRender: 'jhyByData' },
|
|
|
className: 'replacecolor',
|
|
@@ -293,7 +294,7 @@
|
|
|
{
|
|
|
title: '签名',
|
|
|
dataIndex: 'jhyName',
|
|
|
- width: '9%',
|
|
|
+ width: '11%',
|
|
|
ellipsis: true,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
@@ -338,6 +339,9 @@
|
|
|
getAction('/oa/syCarry/querySyCarryBByMainId', {id:id}).then((res) => {
|
|
|
if(res.success){
|
|
|
res.result.map(item =>{
|
|
|
+ if(item.jhyByData !==''&& item.jhyByData){
|
|
|
+ item.jhyByData = item.jhyByData.split(",")
|
|
|
+ }
|
|
|
if(item.orderDate !==''&& item.orderDate){
|
|
|
item.orderDate = moment(item.orderDate)
|
|
|
}
|
|
@@ -373,7 +377,7 @@
|
|
|
},
|
|
|
//获取计划员
|
|
|
getOption(){
|
|
|
- personList().then(res => {
|
|
|
+ personList({pageSize:'9999'}).then(res => {
|
|
|
if (res.success) {
|
|
|
res.result.records.map(item =>{
|
|
|
this.jhyNameOption.push({label:item.realname,value:item.username})
|
|
@@ -445,6 +449,15 @@
|
|
|
if(valid){
|
|
|
var obj = this.formState
|
|
|
this.syCarryBTable.dataSource.map(item=>{
|
|
|
+
|
|
|
+ console.log('ssssssssssss',item.jhyByData.toString());
|
|
|
+ if(item.jhyByData!=''&&item.jhyByData){
|
|
|
+
|
|
|
+ // item.jhyByData.forEach(t => {
|
|
|
+ // console.log('ssssssssssss',t);
|
|
|
+ // })
|
|
|
+ item.jhyByData = item.jhyByData.toString();
|
|
|
+ }
|
|
|
if(item.orderDate!==''&&item.orderDate){
|
|
|
item.orderDate = moment(item.orderDate).format('YYYY-MM-DD HH:mm:ss');
|
|
|
}
|
|
@@ -471,7 +484,7 @@
|
|
|
this.$message.warning(res.message)
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
|