| 
														
															@@ -19,10 +19,11 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <trade-card title="基础信息"> 
														 | 
														
														 | 
														
															             <trade-card title="基础信息"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 <avue-form :option="optionForm" v-model="form" ref="form"> 
														 | 
														
														 | 
														
															                 <avue-form :option="optionForm" v-model="form" ref="form"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     <template slot-scope="{row,index}" slot="contacts"> 
														 | 
														
														 | 
														
															                     <template slot-scope="{row,index}" slot="contacts"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        <!-- 联系人 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         <el-select v-model="form.contacts" placeholder="请选择" size="small" style="width:60%" clearable 
														 | 
														
														 | 
														
															                         <el-select v-model="form.contacts" placeholder="请选择" size="small" style="width:60%" clearable 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             filterable allow-create default-first-option @change="contactsChange($event)" 
														 | 
														
														 | 
														
															                             filterable allow-create default-first-option @change="contactsChange($event)" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            :disabled="form.status == 2"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            <el-option v-for="item in contactsOption" :key="item.id" :label="item.contacts" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                            :disabled="editButton || form.status == 2"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                            <el-option v-for="item in contactsOption" :key="item.cname" :label="item.cname" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 :value="item.contacts" /> 
														 | 
														
														 | 
														
															                                 :value="item.contacts" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         </el-select> 
														 | 
														
														 | 
														
															                         </el-select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     </template> 
														 | 
														
														 | 
														
															                     </template> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -32,6 +33,19 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             :remote="true" dataName="cname" @selectChange="dicChange('customerName', $event)" 
														 | 
														
														 | 
														
															                             :remote="true" dataName="cname" @selectChange="dicChange('customerName', $event)" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             :disabled="editButton || form.status == 2"></dic-select> 
														 | 
														
														 | 
														
															                             :disabled="editButton || form.status == 2"></dic-select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     </tempalte> 
														 | 
														
														 | 
														
															                     </tempalte> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    <tempalte slot="storageName"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        <dic-select v-model="form.storageName" placeholder="货主" key="id" label="cname" res="records" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                            url="/blade-sales-part/tire/center/warehouse/storage/list?current=1&size=5" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                            :filterable="true" :remote="true" dataName="cname" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                            @selectChange="dicChange('storageName', $event)" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                            :disabled="editButton || form.status == 2"></dic-select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    </tempalte> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    <tempalte slot="warehouseKeeperName"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        <dic-select v-model="form.warehouseKeeperName" placeholder="库管" key="id" label="realName" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                            res="records" url="/blade-user/page?current=1&size=5&userType=2" :filterable="true" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                            :remote="true" dataName="realName" @selectChange="dicChange('warehouseKeeperName', $event)" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                            :disabled="editButton || form.status == 2"></dic-select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    </tempalte> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 </avue-form> 
														 | 
														
														 | 
														
															                 </avue-form> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </trade-card> 
														 | 
														
														 | 
														
															             </trade-card> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <trade-card title="明细信息"> 
														 | 
														
														 | 
														
															             <trade-card title="明细信息"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -50,34 +64,25 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 </el-button> 
														 | 
														
														 | 
														
															                                 </el-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 <el-button type="primary" icon="el-icon-printer" size="small" 
														 | 
														
														 | 
														
															                                 <el-button type="primary" icon="el-icon-printer" size="small" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                     @click="handlePrint">打印</el-button> 
														 | 
														
														 | 
														
															                                     @click="handlePrint">打印</el-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                <el-button type="danger" plain size="small" @click="batchDelete" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    :disabled="form.status == 2">一键删除</el-button> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                <!-- <el-button type="danger" plain size="small" @click="batchDelete" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                    :disabled="form.status == 2">一键删除</el-button> --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 <el-popover width="600" trigger="click"> 
														 | 
														
														 | 
														
															                                 <el-popover width="600" trigger="click"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                     <avue-crud :data="inventoryData" :option="inventoryOption"></avue-crud> 
														 | 
														
														 | 
														
															                                     <avue-crud :data="inventoryData" :option="inventoryOption"></avue-crud> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                     <el-button type="primary" plain size="small" slot="reference" @click="viewInventory" 
														 | 
														
														 | 
														
															                                     <el-button type="primary" plain size="small" slot="reference" @click="viewInventory" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                         :disabled="selectionMultilist.length != 1">查看库存</el-button> 
														 | 
														
														 | 
														
															                                         :disabled="selectionMultilist.length != 1">查看库存</el-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 </el-popover> 
														 | 
														
														 | 
														
															                                 </el-popover> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             </template> 
														 | 
														
														 | 
														
															                             </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            <template slot="goodsId" slot-scope="{ row }"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                {{ row.goodsName }} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            </template> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             <template slot="goodsNum" slot-scope="{ row }"> 
														 | 
														
														 | 
														
															                             <template slot="goodsNum" slot-scope="{ row }"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                <el-input-number 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    v-if="!mingxibaocun && (form.businessSource != '外部销售' && form.businessSource != '共享销售')" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    size="small" v-model="row.goodsNum" :precision="numberDecimal" :controls="false" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    @blur="goodsNumblurfun(row)" style="width: 100%"></el-input-number> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                <el-input-number v-if="row.$cellEdit" size="small" v-model="row.goodsNum" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                    :precision="numberDecimal" :controls="false" @blur="goodsNumblurfun(row)" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                    style="width: 100%" @change="moneyChange(row)"></el-input-number> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 <span v-else>{{ row.goodsNum }}</span> 
														 | 
														
														 | 
														
															                                 <span v-else>{{ row.goodsNum }}</span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             </template> 
														 | 
														
														 | 
														
															                             </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             <template slot="price" slot-scope="{ row }"> 
														 | 
														
														 | 
														
															                             <template slot="price" slot-scope="{ row }"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                <el-input 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    v-if="!mingxibaocun && (form.businessSource != '外部销售' && form.businessSource != '共享销售')" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    size="small" v-model="row.price" style="width: 100%"></el-input> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                <el-input v-if="row.$cellEdit" size="small" v-model="row.price" style="width: 100%" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                    @change="moneyChange(row)"></el-input> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 <span v-else>{{ row.price }}</span> 
														 | 
														
														 | 
														
															                                 <span v-else>{{ row.price }}</span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             </template> 
														 | 
														
														 | 
														
															                             </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            <template slot="subTotalMoney" slot-scope="{ row }">{{ row.goodsNum * row.price 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                }}</template> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             <template slot="remarks" slot-scope="{ row }"> 
														 | 
														
														 | 
														
															                             <template slot="remarks" slot-scope="{ row }"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 <el-input v-if="!mingxibaocun" size="small" v-model="row.remarks" 
														 | 
														
														 | 
														
															                                 <el-input v-if="!mingxibaocun" size="small" v-model="row.remarks" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                     style="width: 100%"></el-input> 
														 | 
														
														 | 
														
															                                     style="width: 100%"></el-input> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -93,7 +98,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                     @click="hangbaocun(row, index)">保存 
														 | 
														
														 | 
														
															                                     @click="hangbaocun(row, index)">保存 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 </el-button> 
														 | 
														
														 | 
														
															                                 </el-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 <el-button icon="el-icon-delete" :size="size" :disabled="form.status == 2" :type="type" 
														 | 
														
														 | 
														
															                                 <el-button icon="el-icon-delete" :size="size" :disabled="form.status == 2" :type="type" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    @click="rowDelBox(row, index, 'planItemsList')">删除 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                    @click="rowDel(row, index, 'planItemsList')">删除 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 </el-button> 
														 | 
														
														 | 
														
															                                 </el-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             </template> 
														 | 
														
														 | 
														
															                             </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         </avue-crud> 
														 | 
														
														 | 
														
															                         </avue-crud> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -107,7 +112,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     </el-tab-pane> 
														 | 
														
														 | 
														
															                     </el-tab-pane> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 </el-tabs> 
														 | 
														
														 | 
														
															                 </el-tabs> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </trade-card> 
														 | 
														
														 | 
														
															             </trade-card> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            <report-dialog :switchDialog="switchDialog" :reportName="reportName" :reportId="form.id" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <report-dialog :switchDialog="switchDialog" reportName="仓库管理-中心仓出库单" :reportId="form.id" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 @onClose="onClose()"></report-dialog> 
														 | 
														
														 | 
														
															                 @onClose="onClose()"></report-dialog> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </div> 
														 | 
														
														 | 
														
															         </div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <el-dialog title="导入明细" append-to-body :visible.sync="excelBox" v-if="excelBox" width="555px" 
														 | 
														
														 | 
														
															         <el-dialog title="导入明细" append-to-body :visible.sync="excelBox" v-if="excelBox" width="555px" 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -207,6 +212,7 @@ import { isProcurement } from "@/api/basicData/configuration"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import { getList as inventoryList } from "@/api/tirePartsMall/inventory"; 
														 | 
														
														 | 
														
															 import { getList as inventoryList } from "@/api/tirePartsMall/inventory"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import dicSelect from "@/components/dicSelect/main"; 
														 | 
														
														 | 
														
															 import dicSelect from "@/components/dicSelect/main"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import { stockGoodsList } from "@/api/storehouse/stock.js"; 
														 | 
														
														 | 
														
															 import { stockGoodsList } from "@/api/storehouse/stock.js"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import _ from "lodash"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 export default { 
														 | 
														
														 | 
														
															 export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     name: "detailsPage", 
														 | 
														
														 | 
														
															     name: "detailsPage", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     data() { 
														 | 
														
														 | 
														
															     data() { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -265,7 +271,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 ] 
														 | 
														
														 | 
														
															                 ] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }, 
														 | 
														
														 | 
														
															             }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             inventoryData: [], 
														 | 
														
														 | 
														
															             inventoryData: [], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            reportName: '轮胎商城-销售订单', // 打印传的名字 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             SelectSearch: {}, // 添加商品检索 
														 | 
														
														 | 
														
															             SelectSearch: {}, // 添加商品检索 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             // 编辑还是保存 
														 | 
														
														 | 
														
															             // 编辑还是保存 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             mingxibaocun: true, 
														 | 
														
														 | 
														
															             mingxibaocun: true, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -385,7 +390,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 menuBtn: false, 
														 | 
														
														 | 
														
															                 menuBtn: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 span: 8, 
														 | 
														
														 | 
														
															                 span: 8, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 disabled: false, 
														 | 
														
														 | 
														
															                 disabled: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                labelWidth:100, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                labelWidth: 100, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 column: [{ 
														 | 
														
														 | 
														
															                 column: [{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     label: '货主', 
														 | 
														
														 | 
														
															                     label: '货主', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     prop: "customerName", 
														 | 
														
														 | 
														
															                     prop: "customerName", 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -397,37 +402,37 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         trigger: "blur" 
														 | 
														
														 | 
														
															                         trigger: "blur" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     }] 
														 | 
														
														 | 
														
															                     }] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 }, 
														 | 
														
														 | 
														
															                 }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        label: '联系人', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        type: "select", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        prop: "contacts", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        disabled: false, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        allowCreate: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        filterable: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        dicData: [], 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        props: { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            label: 'address', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            value: 'id' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        dicUrl: '/api/blade-sales-part/corpsAddr/corpIdByAddr?pid={{key}}' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    }, { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        label: '电话', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        disabled: false, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    label: '联系人', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    type: "select", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    prop: "contacts", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    disabled: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    allowCreate: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    filterable: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    dicData: [], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    props: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        label: 'address', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        value: 'id' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    dicUrl: '/api/blade-sales-part/corpsAddr/corpIdByAddr?pid={{key}}' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                }, { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    label: '电话', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    disabled: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        prop: "phone", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    }, { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        label: '收货地址', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        prop: "recAddress", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        type: 'select', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        allowCreate: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        filterable: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        disabled: false, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        props: { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            label: 'address', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            value: 'address' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        dicUrl: '/api/blade-sales-part/corpsAddr/corpIdByAddr?pid={{key}}' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    prop: "phone", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                }, { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    label: '收货地址', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    prop: "recAddress", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    type: 'select', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    allowCreate: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    filterable: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    disabled: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    props: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        label: 'address', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        value: 'address' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     }, 
														 | 
														
														 | 
														
															                     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    dicUrl: '/api/blade-sales-part/corpsAddr/corpIdByAddr?pid={{key}}' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 { 
														 | 
														
														 | 
														
															                 { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     label: '仓库', 
														 | 
														
														 | 
														
															                     label: '仓库', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     prop: "storageId", 
														 | 
														
														 | 
														
															                     prop: "storageId", 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -501,6 +506,11 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     disabled: false, 
														 | 
														
														 | 
														
															                     disabled: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     prop: "expressNo" 
														 | 
														
														 | 
														
															                     prop: "expressNo" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 }, 
														 | 
														
														 | 
														
															                 }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    label: '库管', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    prop: "warehouseKeeperName" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 { 
														 | 
														
														 | 
														
															                 { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     label: '备注', 
														 | 
														
														 | 
														
															                     label: '备注', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     prop: "remarks", 
														 | 
														
														 | 
														
															                     prop: "remarks", 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -513,7 +523,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             optionContacts: {}, 
														 | 
														
														 | 
														
															             optionContacts: {}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             optionContactsBack: { 
														 | 
														
														 | 
														
															             optionContactsBack: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 disabled: false, 
														 | 
														
														 | 
														
															                 disabled: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                goodsId: '', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 border: true, 
														 | 
														
														 | 
														
															                 border: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 align: 'center', 
														 | 
														
														 | 
														
															                 align: 'center', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 index: true, 
														 | 
														
														 | 
														
															                 index: true, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -566,24 +575,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 column: [ 
														 | 
														
														 | 
														
															                 column: [ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     { 
														 | 
														
														 | 
														
															                     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         label: '商品名称', 
														 | 
														
														 | 
														
															                         label: '商品名称', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        prop: 'goodsId', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        width: 250, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        disabled: false, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        remote: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        overHidden: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        hide: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        type: 'select', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        dicData: [], 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        props: { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            label: 'goodsName', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            value: 'goodsId' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        // dicUrl: '/api/blade-sales-part/goodsDesc/goodsListAll?cname={{key}}' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        dicUrl: `/api/blade-sales-part/goodsDesc/goodsListXs?cname={{key}}&customId=&enableOrNot=1&stock=${this.goodsId}` 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        // dicUrl: "/api/blade-sales-part/goodsDesc/goodsListXs?cname={{key}}" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        label: '商品名称', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         prop: 'goodsName', 
														 | 
														
														 | 
														
															                         prop: 'goodsName', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         width: 250, 
														 | 
														
														 | 
														
															                         width: 250, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         disabled: false, 
														 | 
														
														 | 
														
															                         disabled: false, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -601,18 +592,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             required: true, 
														 | 
														
														 | 
														
															                             required: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             message: " ", 
														 | 
														
														 | 
														
															                             message: " ", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             trigger: "blur" 
														 | 
														
														 | 
														
															                             trigger: "blur" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        }, { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            validator: (rule, value, callback) => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                console.log(this.formContacts.inventory); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                if (value < 0) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    callback(new Error("数量不能小于0")); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                } else if (Number(value) > Number(this.formContacts.inventory)) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    callback(new Error("数量不能大于库存")); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                } else { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    callback(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            trigger: "blur" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         }] 
														 | 
														
														 | 
														
															                         }] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     }, 
														 | 
														
														 | 
														
															                     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     { 
														 | 
														
														 | 
														
															                     { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -626,38 +605,18 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             required: true, 
														 | 
														
														 | 
														
															                             required: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             message: " ", 
														 | 
														
														 | 
														
															                             message: " ", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             trigger: "blur" 
														 | 
														
														 | 
														
															                             trigger: "blur" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        }, { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            validator: (rule, value, callback) => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                if (value < 0) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    callback(new Error("价格不能小于0")); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                } else { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    callback(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            trigger: "blur" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         }] 
														 | 
														
														 | 
														
															                         }] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     }, 
														 | 
														
														 | 
														
															                     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     { 
														 | 
														
														 | 
														
															                     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         label: '库存', 
														 | 
														
														 | 
														
															                         label: '库存', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         prop: 'inventory', 
														 | 
														
														 | 
														
															                         prop: 'inventory', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         overHidden: true, 
														 | 
														
														 | 
														
															                         overHidden: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        hide: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         width: 100 
														 | 
														
														 | 
														
															                         width: 100 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    }, { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         label: '批次号', 
														 | 
														
														 | 
														
															                         label: '批次号', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         prop: 'dot', 
														 | 
														
														 | 
														
															                         prop: 'dot', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        cell: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        type: "select", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        width: 120, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        disabled: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        allowCreate: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        filterable: true, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        dicData: [], 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        props: { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            label: "dot", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            value: "dot" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        dicUrl: "/api/blade-sales-part/stockDesc/dotList", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        width: 100, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         overHidden: true, 
														 | 
														
														 | 
														
															                         overHidden: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     }, 
														 | 
														
														 | 
														
															                     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     { 
														 | 
														
														 | 
														
															                     { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -801,6 +760,12 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }) 
														 | 
														
														 | 
														
															         }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     methods: { 
														 | 
														
														 | 
														
															     methods: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        countChange(row) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            row.costAmount = _.multiply(Number(row.costPrice ? row.costPrice : 0), Number(row.goodsNum ? row.goodsNum : 0)).toFixed(2) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        moneyChange(row) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            row.subTotalMoney = _.multiply(Number(row.price ? row.price : 0), Number(row.goodsNum ? row.goodsNum : 0)).toFixed(2) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         dicChange(name, row) { 
														 | 
														
														 | 
														
															         dicChange(name, row) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (name == 'customerName') { 
														 | 
														
														 | 
														
															             if (name == 'customerName') { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 if (row) { 
														 | 
														
														 | 
														
															                 if (row) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -808,7 +773,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     getCustom({ id: row.id }).then(res => { 
														 | 
														
														 | 
														
															                     getCustom({ id: row.id }).then(res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         if (res.data.data) { 
														 | 
														
														 | 
														
															                         if (res.data.data) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             this.dicUrlWithCustomId = res.data.data.id ? res.data.data.id : '' 
														 | 
														
														 | 
														
															                             this.dicUrlWithCustomId = res.data.data.id ? res.data.data.id : '' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                            // this.form.storageId = this.form.storageId ? this.form.storageId : res.data.data.deliveryWarehouseId 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             this.form.contacts = res.data.data.corpsAttnList[0].cname 
														 | 
														
														 | 
														
															                             this.form.contacts = res.data.data.corpsAttnList[0].cname 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             this.form.phone = res.data.data.corpsAttnList[0].tel 
														 | 
														
														 | 
														
															                             this.form.phone = res.data.data.corpsAttnList[0].tel 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             this.contactsOption = res.data.data.corpsAddrList 
														 | 
														
														 | 
														
															                             this.contactsOption = res.data.data.corpsAddrList 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -818,11 +782,28 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     this.form.customerId = null 
														 | 
														
														 | 
														
															                     this.form.customerId = null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     this.form.customerName = null 
														 | 
														
														 | 
														
															                     this.form.customerName = null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     this.dicUrlWithCustomId = null 
														 | 
														
														 | 
														
															                     this.dicUrlWithCustomId = null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    // this.form.storageId = null 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     this.form.contacts = null 
														 | 
														
														 | 
														
															                     this.form.contacts = null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     this.form.phone = null 
														 | 
														
														 | 
														
															                     this.form.phone = null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (name == 'warehouseKeeperName') { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if (row) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.form.warehouseKeeper = row.id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    // this.form.warehouseKeeperName=row.realName 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.form.warehouseKeeper = null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.form.warehouseKeeperName = null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (name == 'storageName') { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if (row) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.form.storageId = row.id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    // this.form.warehouseKeeperName=row.realName 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.form.storageId = null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.form.storageName = null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }, 
														 | 
														
														 | 
														
															         }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         viewInventory() { 
														 | 
														
														 | 
														
															         viewInventory() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.inventoryData = [] 
														 | 
														
														 | 
														
															             this.inventoryData = [] 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -830,14 +811,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 this.inventoryData = res.data.data.records 
														 | 
														
														 | 
														
															                 this.inventoryData = res.data.data.records 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             ]) 
														 | 
														
														 | 
														
															             ]) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }, 
														 | 
														
														 | 
														
															         }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        synchronous(row) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.form.planItemsList.forEach(e => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                if (e.goodsName == this.selectionMultilist[0].goodsName) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    e.inventory = row.balanceQuantity 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    e.dot = row.dot 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            }) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         uploadAfter(res, done, loading, column) { 
														 | 
														
														 | 
														
															         uploadAfter(res, done, loading, column) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (Array.isArray(res)) { 
														 | 
														
														 | 
														
															             if (Array.isArray(res)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 if (res instanceof Array) { 
														 | 
														
														 | 
														
															                 if (res instanceof Array) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1076,7 +1049,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             // 获取是否管理批次号 
														 | 
														
														 | 
														
															             // 获取是否管理批次号 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             getDetailsGods({ id: row.goodsId }).then(res => { 
														 | 
														
														 | 
														
															             getDetailsGods({ id: row.goodsId }).then(res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 row.whether = res.data.data.whether 
														 | 
														
														 | 
														
															                 row.whether = res.data.data.whether 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                this.picihaolistfun(row.id) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 row.dotedittype = true 
														 | 
														
														 | 
														
															                 row.dotedittype = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 // 价格数量 
														 | 
														
														 | 
														
															                 // 价格数量 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 row.goodsNumtype = true 
														 | 
														
														 | 
														
															                 row.goodsNumtype = true 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1093,24 +1065,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             row.pricetype = false 
														 | 
														
														 | 
														
															             row.pricetype = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.mingxibaocun = true 
														 | 
														
														 | 
														
															             this.mingxibaocun = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }, 
														 | 
														
														 | 
														
															         }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        // 批次号获取数据 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        picihaolistfun(goodsId) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            dotList({ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                storageId: this.form.storageId, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                goodsId: goodsId 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            }).then(res => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                this.picihaolist = res.data.data 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            }) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        // 批次号切换库存 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        dotchangefun(value, row) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            for (let item of this.picihaolist) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                if (item.dot == value) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.$set(row, 'inventory', item.balanceQuantity) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.$set(row, 'rebatePrice', item.rebatePrice) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // 数量失焦触发 
														 | 
														
														 | 
														
															         // 数量失焦触发 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         goodsNumblurfun(row) { 
														 | 
														
														 | 
														
															         goodsNumblurfun(row) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (Number(row.goodsNum) > Number(row.inventory)) { 
														 | 
														
														 | 
														
															             if (Number(row.goodsNum) > Number(row.inventory)) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1118,19 +1072,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 return 
														 | 
														
														 | 
														
															                 return 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }, 
														 | 
														
														 | 
														
															         }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        editBtn(row, index) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.confirmEditing() 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.$refs.formContacts.rowEdit(row, index); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            dotList({ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                storageId: this.form.storageId, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                goodsId: this.formContacts.goodsId 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            }).then(res => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                this.findObject(this.optionContactsBack.column, "dot").dicData = res.data.data 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            }) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            goodsListXs(this.dicUrlWithCustomId, this.form.storageId ? this.form.storageId : '').then(res => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                this.findObject(this.optionContactsBack.column, "goodsId").dicData = res.data.data 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            }) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         //联系人change 
														 | 
														
														 | 
														
															         //联系人change 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         contactsChange(e) { 
														 | 
														
														 | 
														
															         contactsChange(e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             // 假设this.contactsOption是你的数组对象 
														 | 
														
														 | 
														
															             // 假设this.contactsOption是你的数组对象 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1165,7 +1106,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         spinner: 'el-icon-loading', 
														 | 
														
														 | 
														
															                         spinner: 'el-icon-loading', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         background: 'rgba(255,255,255,0.7)' 
														 | 
														
														 | 
														
															                         background: 'rgba(255,255,255,0.7)' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     }); 
														 | 
														
														 | 
														
															                     }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.form.storageName = this.form.$storageId ? this.form.$storageId : '' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     this.form.billType = this.form.billType ? this.form.billType : 0 
														 | 
														
														 | 
														
															                     this.form.billType = this.form.billType ? this.form.billType : 0 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     submit(this.form).then(res => { 
														 | 
														
														 | 
														
															                     submit(this.form).then(res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         this.$message.success("保存成功"); 
														 | 
														
														 | 
														
															                         this.$message.success("保存成功"); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1228,20 +1168,20 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 loading.close(); 
														 | 
														
														 | 
														
															                 loading.close(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }) 
														 | 
														
														 | 
														
															             }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }, 
														 | 
														
														 | 
														
															         }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        rowDelBox(row, index, type) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        rowDel(row, index,list) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.$confirm("确定将选择数据删除?", { 
														 | 
														
														 | 
														
															             this.$confirm("确定将选择数据删除?", { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 confirmButtonText: "确定", 
														 | 
														
														 | 
														
															                 confirmButtonText: "确定", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 cancelButtonText: "取消", 
														 | 
														
														 | 
														
															                 cancelButtonText: "取消", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 type: "warning" 
														 | 
														
														 | 
														
															                 type: "warning" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }).then(() => { 
														 | 
														
														 | 
														
															             }).then(() => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 if (row.id) { 
														 | 
														
														 | 
														
															                 if (row.id) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    itemRemove({ ids: row.id }).then(res => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        this.form.planItemsList.splice(index, 1); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        this.$message.success("操作成功!"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    }); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    // itemRemove({ ids: row.id }).then(res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    //     this.form.planItemsList.splice(index, 1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    //     this.$message.success("操作成功!"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    // }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    row.isDeleted = 1 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } else { 
														 | 
														
														 | 
														
															                 } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.form[type].splice(index, 1); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.$message.success("操作成功!"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.form[list].splice(index, 1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             ); 
														 | 
														
														 | 
														
															             ); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1301,12 +1241,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 this.$message.error('请选择仓库') 
														 | 
														
														 | 
														
															                 this.$message.error('请选择仓库') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 return 
														 | 
														
														 | 
														
															                 return 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.findObject(this.optionContactsBack.column, 'goodsId').dicUrl = `/api/blade-sales-part/goodsDesc/goodsListXs?cname={{key}}&customId=${this.dicUrlWithCustomId}&enableOrNot=1&stock=${this.form.storageId}` 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.goodsType = type 
														 | 
														
														 | 
														
															             this.goodsType = type 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            let columnList = ['goodsId', 'goodsNum', 'price', 'dot', 'remarks'] 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.optionContactsBack.column.forEach(its => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                its.disabled = columnList.indexOf(its.prop) === -1 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            }) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.getAllWorkDicts() 
														 | 
														
														 | 
														
															             this.getAllWorkDicts() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.goodsListSave = [] 
														 | 
														
														 | 
														
															             this.goodsListSave = [] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             setTimeout(res => { 
														 | 
														
														 | 
														
															             setTimeout(res => { 
														 |