|
@@ -35,7 +35,7 @@
|
|
|
<el-input type="text" :value="formData.salesId" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="16">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="网点名称" prop="websitId">
|
|
|
<el-select
|
|
|
clearable
|
|
@@ -58,6 +58,28 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
+ <el-form-item label="师傅所属网点" prop="websitId">
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ v-model="formData.websit2"
|
|
|
+ :disabled="formData.flag != 'SAVE' && formType != 0"
|
|
|
+ value-key="websitId"
|
|
|
+ @change="changeWebsit2"
|
|
|
+ placeholder="请选择"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in websitList2"
|
|
|
+ :key="item.websitId"
|
|
|
+ :label="`(${item.websitId})${item.name}`"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="购买方" :required="true" style="padding-bottom: 1px">
|
|
|
<el-radio-group
|
|
|
v-model="formData.buyPeople"
|
|
@@ -666,6 +688,7 @@ export default {
|
|
|
return {
|
|
|
dataList: [],
|
|
|
websitList: [],
|
|
|
+ websitList2: [],
|
|
|
workerList: [],
|
|
|
mainList: [],
|
|
|
projectList: [],
|
|
@@ -675,8 +698,11 @@ export default {
|
|
|
payCodeUrl: '',
|
|
|
formData: {
|
|
|
websit: {},
|
|
|
+ websit2: {},
|
|
|
websitId: '',
|
|
|
websitName: '',
|
|
|
+ workerWebsitName: '',
|
|
|
+ workerWebsitId: '',
|
|
|
file_url: [],
|
|
|
salesId: '',
|
|
|
flag: '',
|
|
@@ -767,6 +793,7 @@ export default {
|
|
|
getDetail({ salesId: this.id }).then(async res => {
|
|
|
Object.assign(this.formData, res.data, {
|
|
|
websit: { websitId: res.data.websitId, name: res.data.websitName },
|
|
|
+ websit2: { websitId: res.data.workerWebsitId, name: res.data.workerWebsitName },
|
|
|
worker: { nickName: res.data.workerName, userId: res.data.workerId },
|
|
|
project: {
|
|
|
id: res.data.orderEnginBaseId,
|
|
@@ -818,6 +845,9 @@ export default {
|
|
|
getWebsit({ type: 'C' }).then(res => {
|
|
|
this.websitList = res.data
|
|
|
})
|
|
|
+ getWebsit({ type: 'C', isAll: true }).then(res => {
|
|
|
+ this.websitList2 = res.data
|
|
|
+ })
|
|
|
},
|
|
|
changeWebsit(e) {
|
|
|
this.dataList = []
|
|
@@ -825,10 +855,18 @@ export default {
|
|
|
this.formData.websitName = e.name
|
|
|
this.formData.storageName = ''
|
|
|
this.formData.storageId = ''
|
|
|
- this.getWorker()
|
|
|
this.getCategory(e.websitId, this.formData.storageId)
|
|
|
this.getWarehouseList(e.websitId)
|
|
|
},
|
|
|
+ changeWebsit2(e) {
|
|
|
+ this.formData.workerWebsitId = e.websitId
|
|
|
+ this.formData.workerWebsitName = e.name
|
|
|
+ this.formData.identity = ''
|
|
|
+ this.formData.workerMobile = ''
|
|
|
+ this.formData.workerId = ''
|
|
|
+ this.formData.workerName = ''
|
|
|
+ this.getWorker()
|
|
|
+ },
|
|
|
changeStorage(e) {
|
|
|
if (!this.formData.isImport && this.formData.orderSource == 'SELF') {
|
|
|
this.dataList = []
|
|
@@ -914,13 +952,24 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
getWorker() {
|
|
|
- getWorker({
|
|
|
- pageNum: 1,
|
|
|
- pageSize: -1,
|
|
|
- params: this.formType == 2 ? [] : [{ param: 'b.websit_id', compare: '=', value: this.formData.websitId }]
|
|
|
- }).then(res => {
|
|
|
- this.workerList = res.data.records
|
|
|
- })
|
|
|
+ if (this.formData.workerWebsitId) {
|
|
|
+ getWorker({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ ignoreWebsitRole: true,
|
|
|
+ params:
|
|
|
+ this.formType == 2
|
|
|
+ ? []
|
|
|
+ : [
|
|
|
+ { param: 'b.websit_id', compare: '=', value: this.formData.workerWebsitId }
|
|
|
+ // { param: 'b.ignore_websit_role', compare: '=', value: true }
|
|
|
+ ]
|
|
|
+ }).then(res => {
|
|
|
+ this.workerList = res.data.records
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.workerList = []
|
|
|
+ }
|
|
|
},
|
|
|
changeWorker(e) {
|
|
|
this.formData.identity = e.idCard
|
|
@@ -1062,6 +1111,8 @@ export default {
|
|
|
remark: this.formData.remark,
|
|
|
websitId: this.formData.websitId,
|
|
|
websitName: this.formData.websitName,
|
|
|
+ workerWebsitName: this.formData.workerWebsitName,
|
|
|
+ workerWebsitId: this.formData.workerWebsitId,
|
|
|
workerName: this.formData.workerName,
|
|
|
workerId: this.formData.workerId,
|
|
|
identity: this.formData.identity,
|
|
@@ -1177,6 +1228,8 @@ export default {
|
|
|
websitId: this.formData.websitId,
|
|
|
websitName: this.formData.websitName,
|
|
|
workerName: this.formData.workerName,
|
|
|
+ workerWebsitName: this.formData.workerWebsitName,
|
|
|
+ workerWebsitId: this.formData.workerWebsitId,
|
|
|
workerId: this.formData.workerId,
|
|
|
identity: this.formData.identity,
|
|
|
workerMobile: this.formData.workerMobile,
|
|
@@ -1201,6 +1254,8 @@ export default {
|
|
|
remark: this.formData.remark,
|
|
|
websitId: this.formData.websitId,
|
|
|
websitName: this.formData.websitName,
|
|
|
+ workerWebsitName: this.formData.workerWebsitName,
|
|
|
+ workerWebsitId: this.formData.workerWebsitId,
|
|
|
workerName: this.formData.workerName,
|
|
|
workerId: this.formData.workerId,
|
|
|
identity: this.formData.identity,
|