|
@@ -62,7 +62,7 @@
|
|
disabled />
|
|
disabled />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="类型" span="1" prop="type">
|
|
<ws-form-item label="类型" span="1" prop="type">
|
|
- <ws-select v-model="inspect.type" disabled @change="typeChange">
|
|
|
|
|
|
+ <ws-select v-model="inspect.type" :disabled="disabled2" @change="typeChange">
|
|
<ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
|
|
<ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
|
|
</ws-select>
|
|
</ws-select>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
@@ -71,7 +71,7 @@
|
|
:disabled="disabled" />
|
|
:disabled="disabled" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="净重单价(元/公斤)" span="1" prop="tidalGrainPrice" v-if="inspect.type == '潮粮'">
|
|
<ws-form-item label="净重单价(元/公斤)" span="1" prop="tidalGrainPrice" v-if="inspect.type == '潮粮'">
|
|
- <ws-input type="number" @mousewheel.native.prevent v-model="inspect.tidalGrainPrice" placeholder="请输入净重单价" maxlength="10" size="small" disabled />
|
|
|
|
|
|
+ <ws-input type="number" @mousewheel.native.prevent v-model="inspect.tidalGrainPrice" placeholder="请输入净重单价" maxlength="10" size="small" :disabled="disabled2" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="干粮单价(元/公斤)" span="1" prop="dryGrainPrice" v-if="inspect.type == '干粮'">
|
|
<ws-form-item label="干粮单价(元/公斤)" span="1" prop="dryGrainPrice" v-if="inspect.type == '干粮'">
|
|
<ws-input type="number" @mousewheel.native.prevent v-model="inspect.dryGrainPrice" placeholder="请输入干粮单价" maxlength="10" size="small" :disabled="disabled" />
|
|
<ws-input type="number" @mousewheel.native.prevent v-model="inspect.dryGrainPrice" placeholder="请输入干粮单价" maxlength="10" size="small" :disabled="disabled" />
|
|
@@ -163,6 +163,7 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
isShowPrint: false,
|
|
isShowPrint: false,
|
|
|
|
+ customerList1:[],
|
|
// warehouseList: {},
|
|
// warehouseList: {},
|
|
inspect: {
|
|
inspect: {
|
|
tidalGrainPrice: 0,
|
|
tidalGrainPrice: 0,
|
|
@@ -174,6 +175,7 @@
|
|
},
|
|
},
|
|
disabled: false,
|
|
disabled: false,
|
|
disabled1: false,
|
|
disabled1: false,
|
|
|
|
+ disabled2: false,
|
|
types: '1',
|
|
types: '1',
|
|
information: '添加初检',
|
|
information: '添加初检',
|
|
goodNameList: [],
|
|
goodNameList: [],
|
|
@@ -191,11 +193,18 @@
|
|
imgUrl:'',
|
|
imgUrl:'',
|
|
printData:{},
|
|
printData:{},
|
|
num:0,
|
|
num:0,
|
|
- tipFlag:true
|
|
|
|
|
|
+ tipFlag:true,
|
|
|
|
+ allowEdit:0,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
this.types = this.$route.query.type
|
|
this.types = this.$route.query.type
|
|
|
|
+ this.allowEdit = this.$route.query.allowEdit
|
|
|
|
+ if (this.allowEdit == 0) {
|
|
|
|
+ this.disabled2 = true
|
|
|
|
+ } else if (this.allowEdit == 1) {
|
|
|
|
+ this.disabled2 = false
|
|
|
|
+ }
|
|
if(!this.types){
|
|
if(!this.types){
|
|
this.types = 1
|
|
this.types = 1
|
|
this.information = '添加初检'
|
|
this.information = '添加初检'
|
|
@@ -679,6 +688,12 @@
|
|
customerChange(e) {
|
|
customerChange(e) {
|
|
let customers = e.split('(')
|
|
let customers = e.split('(')
|
|
this.inspect.customerName = customers[0]
|
|
this.inspect.customerName = customers[0]
|
|
|
|
+ for (let i = 0; i < this.customerList1.length; i++) {
|
|
|
|
+ console.log(this.customerList1[i].customerName,this.inspect.customerName)
|
|
|
|
+ if(this.customerList1[i].customerName==this.inspect.customerName){
|
|
|
|
+ this.inspect.customerNumberCard=this.customerList1[i].customerNumberCard
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.inspect.customerPhone = customers[1].split(')')[0]
|
|
this.inspect.customerPhone = customers[1].split(')')[0]
|
|
if(this.inspect.goodsName && this.inspect.customerName){
|
|
if(this.inspect.goodsName && this.inspect.customerName){
|
|
// //查看当前用户对应货名有未结算状态的送货
|
|
// //查看当前用户对应货名有未结算状态的送货
|
|
@@ -687,6 +702,7 @@
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
customerName: this.inspect.customerName,
|
|
customerName: this.inspect.customerName,
|
|
goodsName: this.inspect.goodsName,
|
|
goodsName: this.inspect.goodsName,
|
|
|
|
+ customerNumberCard:this.inspect.customerNumberCard
|
|
}) .toPromise()
|
|
}) .toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
count = response
|
|
count = response
|
|
@@ -696,6 +712,7 @@
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
customerName: this.inspect.customerName,
|
|
customerName: this.inspect.customerName,
|
|
goodsName: this.inspect.goodsName,
|
|
goodsName: this.inspect.goodsName,
|
|
|
|
+ customerNumberCard:this.inspect.customerNumberCard
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -767,6 +784,7 @@
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
customerName: this.inspect.customerName,
|
|
customerName: this.inspect.customerName,
|
|
goodsName: this.inspect.goodsName,
|
|
goodsName: this.inspect.goodsName,
|
|
|
|
+ customerNumberCard:this.inspect.customerNumberCard
|
|
}) .toPromise()
|
|
}) .toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
count = response
|
|
count = response
|
|
@@ -776,6 +794,7 @@
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
customerName: this.inspect.customerName,
|
|
customerName: this.inspect.customerName,
|
|
goodsName: this.inspect.goodsName,
|
|
goodsName: this.inspect.goodsName,
|
|
|
|
+ customerNumberCard:this.inspect.customerNumberCard
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -818,6 +837,7 @@
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
|
+ this.customerList1=response
|
|
this.customerList = []
|
|
this.customerList = []
|
|
let customer = response
|
|
let customer = response
|
|
for (let i = 0; i < response.length; i++) {
|
|
for (let i = 0; i < response.length; i++) {
|