|
|
|
@ -123,7 +123,7 @@ |
|
|
|
</el-pagination> |
|
|
|
|
|
|
|
<!-- 拣货出库通知新增/修改 --> |
|
|
|
<el-dialog title="拣货出库通知" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="525px"> |
|
|
|
<el-dialog title="拣货出库通知" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="545px"> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
<el-form-item label="BU" prop="bu"> |
|
|
|
<el-select v-model="modalData.bu" placeholder="请选择" :disabled="modalDisableFlag" style="width: 100px"> |
|
|
|
@ -153,24 +153,34 @@ |
|
|
|
value-format="yyyy-MM-dd"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="出库类别"> |
|
|
|
<el-select v-model="modalData.category" placeholder="请选择" clearable style="width: 140px"> |
|
|
|
<el-option |
|
|
|
v-for="item in categoryList" |
|
|
|
:key="item.crdcode" |
|
|
|
:label="item.crdcode + '-' + item.crdname" |
|
|
|
:value="item.crdcode"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px"> |
|
|
|
<!-- 采购退货时显示供应商 --> |
|
|
|
<el-form-item v-if="modalData.orderType === '采购退货'"> |
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(506)"><a href="#">供应商</a></span> |
|
|
|
<el-input v-model="modalData.customerId" @change="customerBlur(506)" style="width: 100px"></el-input> |
|
|
|
<el-input v-model="modalData.customerId" @change="customerBlur(506)" style="width: 120px"></el-input> |
|
|
|
<el-input v-model="modalData.customerName" disabled style="width: 380px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<!-- 其他出库时显示直接客户 --> |
|
|
|
<el-form-item v-else-if="modalData.orderType === '其他出库'"> |
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(507)"><a href="#">直接客户</a></span> |
|
|
|
<el-input v-model="modalData.customerId" @change="customerBlur(507)" style="width: 100px"></el-input> |
|
|
|
<el-input v-model="modalData.customerId" @change="customerBlur(507)" style="width: 120px"></el-input> |
|
|
|
<el-input v-model="modalData.customerName" disabled style="width: 380px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px"> |
|
|
|
<el-form-item :label="'备注'"> |
|
|
|
<el-input type="textarea" v-model="modalData.remarks" :rows="3" resize='none' show-word-limit style="width: 485px;height: 20px"></el-input> |
|
|
|
<el-input type="textarea" v-model="modalData.remarks" :rows="3" resize='none' show-word-limit style="width: 505px;height: 20px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:35px;margin-top: 55px;text-align:center"> |
|
|
|
@ -629,6 +639,7 @@ |
|
|
|
getOutboundPartList, // 查物料 |
|
|
|
updateOutboundDetail, // 批量编辑明细 |
|
|
|
getOutboundDetail2, // 获取出库明细 |
|
|
|
getOutboundCategoryList, // 查询出库类别列表 |
|
|
|
} from "@/api/qc/outbound_notification.js" |
|
|
|
import { |
|
|
|
getSiteAndBuByUserName, |
|
|
|
@ -706,7 +717,9 @@ |
|
|
|
remarks: '', |
|
|
|
createdBy: '', |
|
|
|
updatedBy: '', |
|
|
|
category: '', // 出库类别 |
|
|
|
}, |
|
|
|
categoryList: [], // 出库类别列表 |
|
|
|
dataList: [], |
|
|
|
detailList: [], |
|
|
|
userBuList: [], |
|
|
|
@ -1186,8 +1199,10 @@ |
|
|
|
customerName: '', |
|
|
|
remarks: '', |
|
|
|
createdBy: this.$store.state.user.name, |
|
|
|
category: '', // 出库类别 |
|
|
|
} |
|
|
|
this.modalDisableFlag = false |
|
|
|
this.loadCategoryList() // 加载出库类别列表 |
|
|
|
this.modalFlag = true |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1208,8 +1223,10 @@ |
|
|
|
customerName: row.customerName, |
|
|
|
remarks: row.remarks, |
|
|
|
updatedBy: this.$store.state.user.name, |
|
|
|
category: row.category || '', // 出库类别 |
|
|
|
} |
|
|
|
this.modalDisableFlag = true |
|
|
|
this.loadCategoryList() // 加载出库类别列表 |
|
|
|
this.modalFlag = true |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1837,6 +1854,15 @@ |
|
|
|
this.authClose = !closeFlag |
|
|
|
this.authIssue = !issueFlag |
|
|
|
}, |
|
|
|
|
|
|
|
// 加载出库类别列表 |
|
|
|
loadCategoryList () { |
|
|
|
getOutboundCategoryList({}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.categoryList = data.rows || [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|