|
@@ -27,19 +27,24 @@
|
|
<ws-option v-for="item in getbinNumberList" :key="item.value" :label="item.value" :value="item.value" />
|
|
<ws-option v-for="item in getbinNumberList" :key="item.value" :label="item.value" :value="item.value" />
|
|
</ws-select>
|
|
</ws-select>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <ws-form-item label="客户" span="1" prop="customerName">
|
|
|
|
- <el-select v-model="inspect.customerName" clearable filterable placeholder="请选择" class="typeselect" @change="customerChange"
|
|
|
|
- :disabled="disabled1">
|
|
|
|
- <el-option v-for="item in customerList" :key="item.valueKey" :label="item.value" :value="item.value" />
|
|
|
|
- </el-select>
|
|
|
|
- </ws-form-item>
|
|
|
|
|
|
+
|
|
<ws-form-item label="囤位号" span="1" prop="storageTagNo">
|
|
<ws-form-item label="囤位号" span="1" prop="storageTagNo">
|
|
<ws-input v-model="inspect.storageTagNo" placeholder="请输入囤位号" maxlength="15" size="small"
|
|
<ws-input v-model="inspect.storageTagNo" placeholder="请输入囤位号" maxlength="15" size="small"
|
|
:disabled="disabled" />
|
|
:disabled="disabled" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="车牌号" span="1" prop="carNumber">
|
|
<ws-form-item label="车牌号" span="1" prop="carNumber">
|
|
- <ws-input v-model="inspect.carNumber" placeholder="请输入车牌号" maxlength="10" size="small"
|
|
|
|
- :disabled="disabled" />
|
|
|
|
|
|
+ <el-select v-model="inspect.carNumber" clearable filterable placeholder="请选择" class="typeselect" @change="shipperNameChange"
|
|
|
|
+ :disabled="disabled1">
|
|
|
|
+ <el-option v-for="(item,index) in carNumberList" :key="index" :label="item.carNo" :value="index" />
|
|
|
|
+ </el-select>
|
|
|
|
+ <!-- <ws-input v-model="inspect.carNumber" placeholder="请输入车牌号" maxlength="10" size="small"
|
|
|
|
+ :disabled="disabled" /> -->
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="客户" span="1" prop="customerName">
|
|
|
|
+ <el-select v-model="inspect.customerName" clearable filterable placeholder="请选择" class="typeselect" @change="customerChange"
|
|
|
|
+ :disabled="disabled1">
|
|
|
|
+ <el-option v-for="item in customerList" :key="item.valueKey" :label="item.value" :value="item.value" />
|
|
|
|
+ </el-select>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="箱号-1" span="1" prop="boxNo">
|
|
<ws-form-item label="箱号-1" span="1" prop="boxNo">
|
|
<ws-input :disabled="disabled" v-model="inspect.boxNo" placeholder="请输入箱号" maxlength="20"
|
|
<ws-input :disabled="disabled" v-model="inspect.boxNo" placeholder="请输入箱号" maxlength="20"
|
|
@@ -169,7 +174,8 @@
|
|
getinspectEdit,
|
|
getinspectEdit,
|
|
getamount,
|
|
getamount,
|
|
getCount,
|
|
getCount,
|
|
- getDryGrainPrice
|
|
|
|
|
|
+ getDryGrainPrice,
|
|
|
|
+ getshippinginfo
|
|
} from '@/model/houseSelfCollect/index'
|
|
} from '@/model/houseSelfCollect/index'
|
|
import {
|
|
import {
|
|
packList
|
|
packList
|
|
@@ -195,6 +201,7 @@
|
|
paramType:1,
|
|
paramType:1,
|
|
type:'潮粮'
|
|
type:'潮粮'
|
|
},
|
|
},
|
|
|
|
+ carNumberList:[],
|
|
disabled: false,
|
|
disabled: false,
|
|
disabled1: false,
|
|
disabled1: false,
|
|
disabled2: false,
|
|
disabled2: false,
|
|
@@ -751,6 +758,47 @@
|
|
})
|
|
})
|
|
|
|
|
|
},
|
|
},
|
|
|
|
+ shipperNameChange(e){
|
|
|
|
+ this.$set(this.inspect,'customerName',this.carNumberList[e].shipperName)
|
|
|
|
+ this.$set(this.inspect,'carNumber',this.carNumberList[e].carNo)
|
|
|
|
+ this.$set(this.inspect,'customerPhone',this.carNumberList[e].shipperPhone)
|
|
|
|
+ for (let i = 0; i < this.customerList1.length; i++) {
|
|
|
|
+ if(this.customerList1[i].customerName==this.inspect.customerName){
|
|
|
|
+ this.inspect.customerNumberCard=this.customerList1[i].customerNumberCard
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(this.inspect.goodsName && this.inspect.customerName){
|
|
|
|
+ // //查看当前用户对应货名有未结算状态的送货
|
|
|
|
+ let count = 0
|
|
|
|
+ getCount({
|
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
+ customerName: this.inspect.customerName,
|
|
|
|
+ goodsName: this.inspect.goodsName,
|
|
|
|
+ customerNumberCard:this.inspect.customerNumberCard
|
|
|
|
+ }) .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ count = response
|
|
|
|
+ })
|
|
|
|
+ // 客户下拉校验
|
|
|
|
+ getamount({
|
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
+ customerName: this.inspect.customerName,
|
|
|
|
+ goodsName: this.inspect.goodsName,
|
|
|
|
+ customerNumberCard:this.inspect.customerNumberCard
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ for (let i = 0; i < this.purchasePriceList.length; i++) {
|
|
|
|
+ if (this.inspect.goodsName == this.purchasePriceList[i].goodsName) {
|
|
|
|
+ if ((this.purchasePriceList[i].saleLimit - response/1000 < 50 || count > 0)&&this.tipFlag) {
|
|
|
|
+ this.tipFlag = false
|
|
|
|
+ this.$message('当前客户已累计销售我司' +this.inspect.goodsName + (response/1000).toFixed(2) +'吨,最高可售' +this.purchasePriceList[i].saleLimit +'吨。');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
customerChange(e) {
|
|
customerChange(e) {
|
|
let customers = e.split('(')
|
|
let customers = e.split('(')
|
|
this.inspect.customerName = customers[0]
|
|
this.inspect.customerName = customers[0]
|
|
@@ -933,6 +981,10 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ getshippinginfo({compId: localStorage.getItem('ws-pf_compId'),warehouseName:this.warehouseName}).toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.carNumberList=response
|
|
|
|
+ })
|
|
// 仓位
|
|
// 仓位
|
|
getbinNumber({
|
|
getbinNumber({
|
|
id: this.cangid
|
|
id: this.cangid
|