|
@@ -938,28 +938,31 @@ export default {
|
|
|
}
|
|
|
// debugger
|
|
|
//客户
|
|
|
- getcustomer({
|
|
|
- warehouseId: this.cangid,
|
|
|
- goodsName: this.deptBudgetList.goodsName
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.customerList1 = response
|
|
|
- this.customerList = []
|
|
|
- let customer = response
|
|
|
- for (let i = 0; i < response.length; i++) {
|
|
|
- if (response[i].supplier) {
|
|
|
- customer = response[i].customerName + '(' + response[i].customerPhone + ')' + '-' + response[i]
|
|
|
- .supplier
|
|
|
- } else {
|
|
|
- customer = response[i].customerName + '(' + response[i].customerPhone + ')'
|
|
|
- }
|
|
|
- this.customerList.push({
|
|
|
- valueKey: i,
|
|
|
- value: customer,
|
|
|
- })
|
|
|
- }
|
|
|
+ if(this.serviceManagementType==3){
|
|
|
+ getcustomer({
|
|
|
+ warehouseId: this.cangid,
|
|
|
+ goodsName: this.deptBudgetList.goodsName
|
|
|
})
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.customerList1 = response
|
|
|
+ this.customerList = []
|
|
|
+ let customer = response
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
+ if (response[i].supplier) {
|
|
|
+ customer = response[i].customerName + '(' + response[i].customerPhone + ')' + '-' + response[i]
|
|
|
+ .supplier
|
|
|
+ } else {
|
|
|
+ customer = response[i].customerName + '(' + response[i].customerPhone + ')'
|
|
|
+ }
|
|
|
+ this.customerList.push({
|
|
|
+ valueKey: i,
|
|
|
+ value: customer,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
for (var i = 0; i < this.purchasePriceList.length; i++) {
|
|
|
if (this.purchasePriceList[i].goodsName == this.deptBudgetList.goodsName) {
|
|
|
this.$set(this.deptBudgetList, 'buckleWeightRatio', this.purchasePriceList[i].deductWeight)
|