作者 lixiang

bug修正

@@ -148,7 +148,7 @@ export default { @@ -148,7 +148,7 @@ export default {
148 { 148 {
149 title: '付款金额(元)', 149 title: '付款金额(元)',
150 align: 'center', 150 align: 'center',
151 - dataIndex: 'supplier' 151 + dataIndex: 'fsje'
152 }, 152 },
153 { 153 {
154 title: '付款时间', 154 title: '付款时间',
1 <template> 1 <template>
2 <a-card :bordered="false" :class="'cust-erp-sub-tab'"> 2 <a-card :bordered="false" :class="'cust-erp-sub-tab'">
  3 + <a-spin :spinning="loading">
3 <a-form-model ref="form" :model="model" :rules="validatorRules"> 4 <a-form-model ref="form" :model="model" :rules="validatorRules">
4 <a-row> 5 <a-row>
5 <h1>{{ sskcTitle }}</h1> 6 <h1>{{ sskcTitle }}</h1>
@@ -114,6 +115,7 @@ @@ -114,6 +115,7 @@
114 </a-row> 115 </a-row>
115 116
116 </a-form-model> 117 </a-form-model>
  118 + </a-spin>
117 </a-card> 119 </a-card>
118 </template> 120 </template>
119 121
@@ -136,6 +138,7 @@ export default { @@ -136,6 +138,7 @@ export default {
136 watch: {}, 138 watch: {},
137 data() { 139 data() {
138 return { 140 return {
  141 + loading: false,
139 sskcTitle: '实时库存', 142 sskcTitle: '实时库存',
140 lszbTitle: '历史中标信息', 143 lszbTitle: '历史中标信息',
141 bctbTitle: '本次投标信息', 144 bctbTitle: '本次投标信息',
@@ -203,6 +206,7 @@ export default { @@ -203,6 +206,7 @@ export default {
203 this.sskcTitle = '实时库存' 206 this.sskcTitle = '实时库存'
204 }, 207 },
205 loadData(rows) { 208 loadData(rows) {
  209 + this.loading = true
206 if (rows) { 210 if (rows) {
207 const row = rows[0] 211 const row = rows[0]
208 console.log("row",row) 212 console.log("row",row)
@@ -277,6 +281,7 @@ export default { @@ -277,6 +281,7 @@ export default {
277 } 281 }
278 }) 282 })
279 } 283 }
  284 + this.loading = false
280 }, 285 },
281 clearList() { 286 clearList() {
282 this.dataSource = [] 287 this.dataSource = []
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 11
12 <!-- 操作按钮区域 --> 12 <!-- 操作按钮区域 -->
13 <div class="table-operator"> 13 <div class="table-operator">
14 - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> 14 + <a-button @click="handleAdd" type="primary" icon="plus" v-has="'kucun:blp:add'">新增</a-button>
15 <!-- <a-button type="primary" icon="download" @click="handleExportXls('不良品库')">导出</a-button> 15 <!-- <a-button type="primary" icon="download" @click="handleExportXls('不良品库')">导出</a-button>
16 <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> 16 <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
17 <a-button type="primary" icon="import">导入</a-button> 17 <a-button type="primary" icon="import">导入</a-button>
@@ -144,8 +144,17 @@ @@ -144,8 +144,17 @@
144 components: { 144 components: {
145 TblTradeInventoryDefectiveProductModal 145 TblTradeInventoryDefectiveProductModal
146 }, 146 },
  147 + props: {
  148 + rowData: {
  149 + type: Object, // 类型为对象
  150 + default: () => ({}), // 默认值为空对象
  151 + },
  152 + },
147 data () { 153 data () {
148 return { 154 return {
  155 + queryParam: {
  156 + expressDeliveryNumber: this.rowData.hth
  157 + },
149 validatorRules:{ 158 validatorRules:{
150 thFlag: [ 159 thFlag: [
151 { required: true, message: '请选择退/换货', trigger: 'change' } 160 { required: true, message: '请选择退/换货', trigger: 'change' }
@@ -157,22 +157,22 @@ @@ -157,22 +157,22 @@
157 dataIndex: 'modelChange', 157 dataIndex: 'modelChange',
158 scopedSlots: {customRender: 'fileSlot'} 158 scopedSlots: {customRender: 'fileSlot'}
159 }, 159 },
160 - {  
161 - title:'型号变更说明上传时间',  
162 - align:"center",  
163 - dataIndex: 'modelChangeDate',  
164 - }, 160 + // {
  161 + // title:'型号变更说明上传时间',
  162 + // align:"center",
  163 + // dataIndex: 'modelChangeDate',
  164 + // },
165 { 165 {
166 title:'合格证', 166 title:'合格证',
167 align:"center", 167 align:"center",
168 dataIndex: 'cert', 168 dataIndex: 'cert',
169 scopedSlots: {customRender: 'fileSlot'} 169 scopedSlots: {customRender: 'fileSlot'}
170 }, 170 },
171 - {  
172 - title:'合格证上传时间',  
173 - align:"center",  
174 - dataIndex: 'certDate',  
175 - }, 171 + // {
  172 + // title:'合格证上传时间',
  173 + // align:"center",
  174 + // dataIndex: 'certDate',
  175 + // },
176 { 176 {
177 title:'其他', 177 title:'其他',
178 align:"center", 178 align:"center",
@@ -180,7 +180,7 @@ @@ -180,7 +180,7 @@
180 scopedSlots: {customRender: 'fileSlot'} 180 scopedSlots: {customRender: 'fileSlot'}
181 }, 181 },
182 { 182 {
183 - title:'其他文件上传时间', 183 + title:'上传时间',
184 align:"center", 184 align:"center",
185 dataIndex: 'otherDate', 185 dataIndex: 'otherDate',
186 }, 186 },
@@ -87,7 +87,8 @@ @@ -87,7 +87,8 @@
87 <a @click="fkInfo(record)">付款管理</a> &nbsp 87 <a @click="fkInfo(record)">付款管理</a> &nbsp
88 </span> 88 </span>
89 <span slot="action5" slot-scope="text, record"> 89 <span slot="action5" slot-scope="text, record">
90 - <a @click="blpInfo(record)">{{record.blpNum}}</a> &nbsp 90 + <div v-if="record.blpNum == null">0</div>
  91 + <a v-else @click="blpInfo(record)">{{record.blpNum}}</a> &nbsp
91 </span> 92 </span>
92 </a-table> 93 </a-table>
93 </a-tab-pane> 94 </a-tab-pane>
@@ -211,7 +212,6 @@ @@ -211,7 +212,6 @@
211 <a-input 212 <a-input
212 v-model="model2.supplier" 213 v-model="model2.supplier"
213 placeholder="请输入供应商(TEL)" 214 placeholder="请输入供应商(TEL)"
214 - disabled="disabled"  
215 ></a-input> 215 ></a-input>
216 </a-form-model-item> 216 </a-form-model-item>
217 </a-col> 217 </a-col>
@@ -222,7 +222,6 @@ @@ -222,7 +222,6 @@
222 <a-input 222 <a-input
223 v-model="model2.procurementChannels" 223 v-model="model2.procurementChannels"
224 placeholder="请输入采购渠道" 224 placeholder="请输入采购渠道"
225 - disabled="disabled"  
226 ></a-input> 225 ></a-input>
227 </a-form-model-item> 226 </a-form-model-item>
228 </a-col> 227 </a-col>
@@ -233,7 +232,6 @@ @@ -233,7 +232,6 @@
233 <a-input 232 <a-input
234 v-model="model2.purchaseQuantity" 233 v-model="model2.purchaseQuantity"
235 placeholder="请输入数量" 234 placeholder="请输入数量"
236 - disabled="disabled"  
237 ></a-input> 235 ></a-input>
238 </a-form-model-item> 236 </a-form-model-item>
239 </a-col> 237 </a-col>
@@ -244,7 +242,6 @@ @@ -244,7 +242,6 @@
244 <a-input 242 <a-input
245 v-model="model2.unitPrice" 243 v-model="model2.unitPrice"
246 placeholder="请输入单价(不含税,元)" 244 placeholder="请输入单价(不含税,元)"
247 - disabled="disabled"  
248 ></a-input> 245 ></a-input>
249 </a-form-model-item> 246 </a-form-model-item>
250 </a-col> 247 </a-col>
@@ -255,7 +252,6 @@ @@ -255,7 +252,6 @@
255 <a-input 252 <a-input
256 v-model="model2.taxRate" 253 v-model="model2.taxRate"
257 placeholder="请输入税率(%)" 254 placeholder="请输入税率(%)"
258 - disabled="disabled"  
259 ></a-input> 255 ></a-input>
260 </a-form-model-item> 256 </a-form-model-item>
261 </a-col> 257 </a-col>
@@ -266,7 +262,6 @@ @@ -266,7 +262,6 @@
266 <a-input 262 <a-input
267 v-model="model2.amount" 263 v-model="model2.amount"
268 placeholder="请输入金额(元)" 264 placeholder="请输入金额(元)"
269 - disabled="disabled"  
270 ></a-input> 265 ></a-input>
271 </a-form-model-item> 266 </a-form-model-item>
272 </a-col> 267 </a-col>
@@ -277,7 +272,6 @@ @@ -277,7 +272,6 @@
277 <a-input 272 <a-input
278 v-model="model2.hth" 273 v-model="model2.hth"
279 placeholder="请输入合同/订单号" 274 placeholder="请输入合同/订单号"
280 - :disabled = "bjflag"  
281 ></a-input> 275 ></a-input>
282 </a-form-model-item> 276 </a-form-model-item>
283 </a-col> 277 </a-col>
@@ -288,7 +282,6 @@ @@ -288,7 +282,6 @@
288 <a-input 282 <a-input
289 v-model="model2.wldh" 283 v-model="model2.wldh"
290 placeholder="请输入物流单号" 284 placeholder="请输入物流单号"
291 - :disabled = "bjflag"  
292 ></a-input> 285 ></a-input>
293 </a-form-model-item> 286 </a-form-model-item>
294 </a-col> 287 </a-col>
@@ -315,25 +308,6 @@ @@ -315,25 +308,6 @@
315 </a-col> 308 </a-col>
316 309
317 310
318 - <a-col :span="12" v-if="bjflag">  
319 - <a-form-model-item label="本次入库数量" :labelCol="labelCol" :wrapperCol="wrapperCol"  
320 - prop="rkNum">  
321 - <a-input  
322 - v-model="model2.rkNum"  
323 - placeholder="请输入已入库数量"  
324 - ></a-input>  
325 - </a-form-model-item>  
326 - </a-col>  
327 -  
328 -<!-- <a-col :span="12" v-if="bjflag">-->  
329 -<!-- <a-form-model-item label="不良品数量" :labelCol="labelCol" :wrapperCol="wrapperCol"-->  
330 -<!-- prop="blpNum">-->  
331 -<!-- <a-input-->  
332 -<!-- v-model="model2.blpNum"-->  
333 -<!-- placeholder="请输入已入库数量"-->  
334 -<!-- ></a-input>-->  
335 -<!-- </a-form-model-item>-->  
336 -<!-- </a-col>-->  
337 311
338 <a-col :span="12"> 312 <a-col :span="12">
339 <a-form-model-item label="预计到厂时间" :labelCol="labelCol" :wrapperCol="wrapperCol" 313 <a-form-model-item label="预计到厂时间" :labelCol="labelCol" :wrapperCol="wrapperCol"
@@ -669,7 +643,7 @@ @@ -669,7 +643,7 @@
669 @ok="handleConfirmblp" 643 @ok="handleConfirmblp"
670 @cancel="handleCancelblp" 644 @cancel="handleCancelblp"
671 cancelText="关闭"> 645 cancelText="关闭">
672 - <TblTradeInventoryDefectiveProductList ></TblTradeInventoryDefectiveProductList> 646 + <TblTradeInventoryDefectiveProductList :rowData="currentRowData" ></TblTradeInventoryDefectiveProductList>
673 </j-modal> 647 </j-modal>
674 648
675 649
@@ -779,7 +753,6 @@ export default { @@ -779,7 +753,6 @@ export default {
779 { pattern: /^\d+$/, message: '数量必须为整数', trigger: 'blur' } 753 { pattern: /^\d+$/, message: '数量必须为整数', trigger: 'blur' }
780 ], 754 ],
781 estimatedTime: [{ required: true, message: '请输入预计到厂时间', trigger: 'blur' }], 755 estimatedTime: [{ required: true, message: '请输入预计到厂时间', trigger: 'blur' }],
782 - htfj: [{ required: true, message: '请上传合同附件', trigger: 'blur' }],  
783 756
784 }, 757 },
785 validatorRules3: { 758 validatorRules3: {
@@ -1131,7 +1104,13 @@ export default { @@ -1131,7 +1104,13 @@ export default {
1131 { 1104 {
1132 title: '已入库数量', 1105 title: '已入库数量',
1133 align: 'center', 1106 align: 'center',
1134 - dataIndex: 'yrkNum' 1107 + dataIndex: 'yrkNum',
  1108 + customRender: function(yrkNum) {
  1109 + if (!yrkNum || yrkNum === 0) {
  1110 + return '0'
  1111 + }
  1112 + return yrkNum;
  1113 + }
1135 }, 1114 },
1136 { 1115 {
1137 title: '剩余订单未入库数量', 1116 title: '剩余订单未入库数量',
@@ -1194,7 +1173,7 @@ export default { @@ -1194,7 +1173,7 @@ export default {
1194 { 1173 {
1195 title: '付款金额(元)', 1174 title: '付款金额(元)',
1196 align: 'center', 1175 align: 'center',
1197 - dataIndex: 'supplier' 1176 + dataIndex: 'fsje'
1198 }, 1177 },
1199 { 1178 {
1200 title: '付款时间', 1179 title: '付款时间',
@@ -1251,7 +1230,8 @@ export default { @@ -1251,7 +1230,8 @@ export default {
1251 superFieldList: [], 1230 superFieldList: [],
1252 isButtonDisabled: true, 1231 isButtonDisabled: true,
1253 auditFlag: false, 1232 auditFlag: false,
1254 - pdfSrc: '' 1233 + pdfSrc: '',
  1234 + currentRowData: null,
1255 } 1235 }
1256 }, 1236 },
1257 created() { 1237 created() {
@@ -1334,6 +1314,7 @@ export default { @@ -1334,6 +1314,7 @@ export default {
1334 }}) 1314 }})
1335 }, 1315 },
1336 blpInfo(record){ 1316 blpInfo(record){
  1317 + this.currentRowData = record;
1337 this.visibleBlp = true 1318 this.visibleBlp = true
1338 }, 1319 },
1339 fkInfo(record) { 1320 fkInfo(record) {
@@ -14,51 +14,11 @@ @@ -14,51 +14,11 @@
14 <a-input placeholder="请输入物料长描述" v-model="queryParam.miaoshu"></a-input> 14 <a-input placeholder="请输入物料长描述" v-model="queryParam.miaoshu"></a-input>
15 </a-form-item> 15 </a-form-item>
16 </a-col> 16 </a-col>
17 -<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">-->  
18 -<!-- <a-form-item label="需求交货期">-->  
19 -<!-- <j-date v-model="queryParam.xqjhq" placeholder="请选择计划完成日期" />-->  
20 -<!-- </a-form-item>-->  
21 -<!-- </a-col>-->  
22 -<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">-->  
23 -<!-- <a-form-item label="询单状态">-->  
24 -<!-- <a-select v-model="queryParam.xdzt" placeholder="请选择" allowClear>-->  
25 -<!-- <a-select-option value="未完成">未完成</a-select-option>-->  
26 -<!-- <a-select-option value="已完成">已完成</a-select-option>-->  
27 -<!-- </a-select>-->  
28 -<!-- </a-form-item>-->  
29 -<!-- </a-col>-->  
30 -<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">-->  
31 -<!-- <a-form-item label="是否投标">-->  
32 -<!-- <a-select v-model="queryParam.sftb" placeholder="请选择" allowClear>-->  
33 -<!-- <a-select-option value="是">是</a-select-option>-->  
34 -<!-- <a-select-option value="否">否</a-select-option>-->  
35 -<!-- </a-select>-->  
36 -<!-- </a-form-item>-->  
37 -<!-- </a-col>-->  
38 -<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">-->  
39 -<!-- <a-form-item label="是否中标">-->  
40 -<!-- <a-select v-model="queryParam.sfzb" placeholder="请选择" allowClear>-->  
41 -<!-- <a-select-option value="是">是</a-select-option>-->  
42 -<!-- <a-select-option value="否">否</a-select-option>-->  
43 -<!-- </a-select>-->  
44 -<!-- </a-form-item>-->  
45 -<!-- </a-col>-->  
46 -<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">-->  
47 -<!-- <a-form-item label="是否采购">-->  
48 -<!-- <a-select v-model="queryParam.sfcg" placeholder="请选择" allowClear>-->  
49 -<!-- <a-select-option value="是">是</a-select-option>-->  
50 -<!-- <a-select-option value="否">否</a-select-option>-->  
51 -<!-- </a-select>-->  
52 -<!-- </a-form-item>-->  
53 -<!-- </a-col>-->  
54 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 17 <a-col :xl="6" :lg="7" :md="8" :sm="24">
55 <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> 18 <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
56 <a-button type="primary" @click="searchQuery(1)" icon="search">查询</a-button> 19 <a-button type="primary" @click="searchQuery(1)" icon="search">查询</a-button>
57 <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> 20 <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
58 - <!-- <a @click="handleToggleSearch" style="margin-left: 8px">  
59 - {{ toggleSearchStatus ? '收起' : '展开' }}  
60 - <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>  
61 - </a> --> 21 +
62 </span> 22 </span>
63 </a-col> 23 </a-col>
64 </a-row> 24 </a-row>
@@ -105,9 +65,11 @@ @@ -105,9 +65,11 @@
105 :dataSource="dataSource" 65 :dataSource="dataSource"
106 :pagination="ipagination" 66 :pagination="ipagination"
107 :loading="loading" 67 :loading="loading"
108 - :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: handleRowClick, type:'radio'}" 68 + :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: handleRadioClick, type:'radio'}"
109 :customRow="clickThenSelect" 69 :customRow="clickThenSelect"
110 - @change="handleTableChange"> 70 + @change="handleTableChange"
  71 + @rowClick="handleRowClick"
  72 + >
111 73
112 <template slot="htmlSlot" slot-scope="text"> 74 <template slot="htmlSlot" slot-scope="text">
113 <div v-html="text"></div> 75 <div v-html="text"></div>
@@ -404,6 +366,19 @@ export default { @@ -404,6 +366,19 @@ export default {
404 }, 366 },
405 // 行点击事件 367 // 行点击事件
406 handleRowClick(selectedRowKeys, selectionRows) { 368 handleRowClick(selectedRowKeys, selectionRows) {
  369 + console.log("handleRowClick.......................................")
  370 + console.log("selectionRows",selectionRows)
  371 + console.log("selectedRowKeys",selectedRowKeys)
  372 + let row = [selectedRowKeys];
  373 + console.log("row",row)
  374 + this.loadChildData(row)
  375 + console.log("handleRowClick.......................................")
  376 +
  377 + },
  378 + handleRadioClick(selectedRowKeys, selectionRows) {
  379 + console.log("selectionRows",selectionRows)
  380 + console.log("selectedRowKeys",selectedRowKeys)
  381 + // this.$refs.tabSskcList.loading = true;
407 this.selectedRowKeys = selectedRowKeys 382 this.selectedRowKeys = selectedRowKeys
408 this.selectionRows = selectionRows 383 this.selectionRows = selectionRows
409 384
@@ -48,6 +48,7 @@ @@ -48,6 +48,7 @@
48 }, 48 },
49 data () { 49 data () {
50 return { 50 return {
  51 + loading: false,
51 description: '贸易招标信息管理页面', 52 description: '贸易招标信息管理页面',
52 disableMixinCreated:true, 53 disableMixinCreated:true,
53 // 表头 54 // 表头
@@ -159,7 +160,9 @@ @@ -159,7 +160,9 @@
159 this.dataSource = [] 160 this.dataSource = []
160 }, 161 },
161 loadData(rows){ 162 loadData(rows){
  163 + this.loading = true
162 console.log("row:tab2",rows) 164 console.log("row:tab2",rows)
  165 + this.dataSource = []
163 const row = rows[0] 166 const row = rows[0]
164 console.log("row",row) 167 console.log("row",row)
165 const materialCode = row.code 168 const materialCode = row.code
@@ -176,6 +179,7 @@ @@ -176,6 +179,7 @@
176 } 179 }
177 } 180 }
178 }) 181 })
  182 + this.loading = false
179 }, 183 },
180 clearList(){ 184 clearList(){
181 this.dataSource=[] 185 this.dataSource=[]
@@ -329,7 +329,7 @@ @@ -329,7 +329,7 @@
329 { 329 {
330 title: '标段(包)名称', 330 title: '标段(包)名称',
331 align: 'center', 331 align: 'center',
332 - dataIndex: 'packageName', 332 + dataIndex: 'tenderInfo.tenderName',
333 width: 130, 333 width: 130,
334 }, 334 },
335 { 335 {
@@ -341,7 +341,7 @@ @@ -341,7 +341,7 @@
341 { 341 {
342 title: '品牌', 342 title: '品牌',
343 align: 'center', 343 align: 'center',
344 - dataIndex: 'tenderInfo.pinpai', 344 + dataIndex: 'tenderInfo.xypp',
345 width: 130, 345 width: 130,
346 }, 346 },
347 { 347 {
@@ -382,12 +382,24 @@ @@ -382,12 +382,24 @@
382 align: 'center', 382 align: 'center',
383 dataIndex: 'xydj', 383 dataIndex: 'xydj',
384 width: 130, 384 width: 130,
  385 + customRender: function (text) {
  386 + if (!text){
  387 + return "0";
  388 + }
  389 + return text;
  390 + },
385 }, 391 },
386 { 392 {
387 title: '中标单价(不含税,元)', 393 title: '中标单价(不含税,元)',
388 align: 'center', 394 align: 'center',
389 dataIndex: 'zbj', 395 dataIndex: 'zbj',
390 width: 130, 396 width: 130,
  397 + customRender: function (text) {
  398 + if (!text){
  399 + return "0";
  400 + }
  401 + return text;
  402 + },
391 }, 403 },
392 { 404 {
393 title: '单价差异', 405 title: '单价差异',
@@ -398,7 +410,7 @@ @@ -398,7 +410,7 @@
398 { 410 {
399 title: '税率(%)', 411 title: '税率(%)',
400 align: 'center', 412 align: 'center',
401 - dataIndex: 'sl', 413 + dataIndex: 'tenderInfo.sl',
402 width: 100, 414 width: 100,
403 }, 415 },
404 { 416 {
@@ -406,6 +418,12 @@ @@ -406,6 +418,12 @@
406 align: 'center', 418 align: 'center',
407 dataIndex: 'bidTotalPrice', 419 dataIndex: 'bidTotalPrice',
408 width: 120, 420 width: 120,
  421 + customRender: function (text) {
  422 + if (!text){
  423 + return "0";
  424 + }
  425 + return text;
  426 + },
409 }, 427 },
410 // { 428 // {
411 // title: '操作', 429 // title: '操作',