|
@@ -294,7 +294,7 @@
|
|
|
<el-dialog title="选择销售订单" :visible.sync="isShowNo" width="80%" :close-on-click-modal="false" :modal-append-to-body="false" @close="close">
|
|
|
<el-form ref="formData1" :model="formData1" label-width="110px" size="small" label-position="left">
|
|
|
<el-row :gutter="20">
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="6">
|
|
|
<el-form-item label="网点名称" prop="websit_id">
|
|
|
<el-select v-model="formData1.websit_id" @change="changeWebsit" placeholder="请选择" style="width: 100%;">
|
|
|
<el-option
|
|
@@ -306,7 +306,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="6">
|
|
|
<el-form-item label="师傅姓名" prop="worker_name">
|
|
|
<el-select v-model="formData1.worker_name" @focus="()=>{
|
|
|
if(!this.formData1.websit_id){return this.$message.warning('请先选择网点名称!');}
|
|
@@ -320,14 +320,14 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="6">
|
|
|
<el-form-item label="师傅联系电话" prop="worker_mobile">
|
|
|
<el-input type="text" v-model="formData1.worker_mobile" placeholder="请输入"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="6">
|
|
|
<el-form-item label="物料名称" prop="goods" align="center">
|
|
|
- <el-select v-model="formData1.goods" @focus="()=>{
|
|
|
+ <el-select v-model="formData1.goods" filterable @focus="()=>{
|
|
|
if(!this.formData1.websit_id){return this.$message.warning('请先选择网点名称!');}
|
|
|
}" value-key="goodsId" placeholder="请选择" style="width: 100%;">
|
|
|
<el-option
|
|
@@ -339,9 +339,9 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="6">
|
|
|
<el-form-item label="规格型号" prop="goods" align="center">
|
|
|
- <el-select v-model="formData1.goods" @focus="()=>{
|
|
|
+ <el-select v-model="formData1.goods" filterable @focus="()=>{
|
|
|
if(!this.formData1.websit_id){return this.$message.warning('请先选择网点名称!');}
|
|
|
}" value-key="goodsId" placeholder="请选择" style="width: 100%;">
|
|
|
<el-option
|
|
@@ -353,9 +353,14 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="销售订单号" prop="sales_id">
|
|
|
+ <el-input type="text" v-model="formData1.sales_id" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
<el-row type="flex" justify="end">
|
|
|
- <el-col :span="7">
|
|
|
+ <el-col :span="5">
|
|
|
<el-button size="small" @click="resetScreenForm()">清空</el-button>
|
|
|
<el-button size="small" type="primary" @click="submitScreenForm()">搜索</el-button>
|
|
|
</el-col>
|
|
@@ -480,6 +485,7 @@
|
|
|
websit_id: '',
|
|
|
worker_name: '',
|
|
|
worker_mobile: '',
|
|
|
+ sales_id: '',
|
|
|
goods: {},
|
|
|
goodsName: '',
|
|
|
goodsSpecification: ''
|
|
@@ -579,7 +585,7 @@
|
|
|
this.getDetail(this.selectedRow.salesId)
|
|
|
},
|
|
|
getOrderList(){
|
|
|
- listPageV2({pageNum: this.pageNum,pageSize: this.pageSize,params: [{param: 'a.flag',compare: '=',value: 'PAY_TAKE'},{param: "a.goods_type", compare: "=", value: "M"},{param: 'a.websit_id',compare: '=',value: this.formData1.websit_id},{param: 'a.worker_name',compare: '=',value: this.formData1.worker_name},{param: 'a.worker_mobile',compare: '=',value: this.formData1.worker_mobile}], goodsName: this.formData1.goods.goodsName, goodsSpecification: this.formData1.goods.goodsSpecification}).then(res => {
|
|
|
+ listPageV2({pageNum: this.pageNum,pageSize: this.pageSize,params: [{param: 'a.sales_id',compare: '=',value: this.formData1.sales_id},{param: 'a.flag',compare: '=',value: 'PAY_TAKE'},{param: "a.goods_type", compare: "=", value: "M"},{param: 'a.websit_id',compare: '=',value: this.formData1.websit_id},{param: 'a.worker_name',compare: '=',value: this.formData1.worker_name},{param: 'a.worker_mobile',compare: '=',value: this.formData1.worker_mobile}], goodsName: this.formData1.goods.goodsName, goodsSpecification: this.formData1.goods.goodsSpecification, isFilter: true}).then(res => {
|
|
|
this.orderList = res.data.records
|
|
|
this.listTotal = res.data.total
|
|
|
})
|
|
@@ -624,6 +630,7 @@
|
|
|
changeWebsit(e){
|
|
|
this.getWorker()
|
|
|
this.getGoodsList()
|
|
|
+ this.formData1.goods = {}
|
|
|
// this.getCategory(e.websitId)
|
|
|
},
|
|
|
getCategory(websitId){
|